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