replicator/support/api/ruby/lib/json/pure/generator.rb
def to_h
          result = {}
          for iv in %w[indent space space_before object_nl array_nl allow_nan max_nesting ascii_only depth]
            result[iv.intern] = instance_variable_get("@#{iv}")
          end
          result
        end
# Returns the configuration instance variables as a hash, that can be
# passed to the configure method.
Returns the configuration instance variables as a hash, that can be
passed to the configure method.
Returns the configuration instance variables as a hash that can be passed to the configure method .
def to_h
          result = {}
          for iv in %w[indent space space_before object_nl array_nl allow_nan max_nesting ascii_only depth]
            result[iv.intern] = instance_variable_get("@#{iv}")
          end
          result
        end
def to_h result = { } for iv in %w[ indent space space_before object_nl array_nl allow_nan max_nesting ascii_only depth ] result [ iv . intern ] = instance_variable_get ( "@#{iv}" ) end result end
Returns the configuration instance variables as a hash, that can be
passed to the configure method.
Returns the configuration instance variables as a hash that can be passed to the configure method .