Module: Mashed::ExtendHash
- Defined in:
- lib/mashed/stringy_hash.rb
Instance Method Summary collapse
Instance Method Details
#stringify ⇒ Object
5 6 7 8 9 10 |
# File 'lib/mashed/stringy_hash.rb', line 5 def stringify StringyHash.new(dup.each_with_object({}) do |(k,v), h| v = v.stringify if v.respond_to?(:stringify) h[k.to_s] = v end) end |