Method: Indifference::HashWithIndifferentAccess#to_hash

Defined in:
lib/indifference/hash_with_indifferent_access.rb

#to_hashObject

Convert to a regular hash with string keys.



267
268
269
270
271
272
273
274
275
# File 'lib/indifference/hash_with_indifferent_access.rb', line 267

def to_hash
  _new_hash = Hash.new
  set_defaults(_new_hash)

  each do |key, value|
    _new_hash[key] = convert_value(value, for: :to_hash)
  end
  _new_hash
end