    # File lib/chef/resource.rb, line 331
        def to_text
          ivars = instance_variables.map { |ivar| ivar.to_sym } - HIDDEN_IVARS
          text = "# Declared in #{@source_line}\n"
          text << convert_to_snake_case(self.class.name, 'Chef::Resource') + "(\"#{name}\") do\n"
          ivars.each do |ivar|
            if (value = instance_variable_get(ivar)) && !(value.respond_to?(:empty?) && value.empty?)
              text << "  #{ivar.to_s.sub(/^@/,'')}(#{value.inspect})\n"
            end
          end
          text << "end\n"
        end