module Hashie::Extensions::StringifyKeys
Public Instance Methods
stringify_keys()
click to toggle source
Return a new hash with all keys converted to strings.
# File lib/hashie/extensions/stringify_keys.rb, line 17 def stringify_keys StringifyKeys.stringify_keys(self) end
stringify_keys!()
click to toggle source
Convert all keys in the hash to strings.
@example
test = {:abc => 'def'} test.stringify_keys! test # => {'abc' => 'def'}
# File lib/hashie/extensions/stringify_keys.rb, line 10 def stringify_keys! StringifyKeys.stringify_keys!(self) self end