Module: Representable::Hash::Conversion
- Defined in:
- lib/representable/hash/allow_symbols.rb
Class Method Summary collapse
Class Method Details
.stringify_keys(hash) ⇒ Object
18 19 20 21 22 |
# File 'lib/representable/hash/allow_symbols.rb', line 18 def self.stringify_keys(hash) hash.keys.collect do |key| [ key.to_s, hash[key] ] end.to_h end |