Module: CatchNotes::Util::ClassMethods
- Defined in:
- lib/catch_notes.rb
Instance Method Summary collapse
Instance Method Details
#stringify_keys(input_hash) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/catch_notes.rb', line 5 def stringify_keys (input_hash) input_hash.map{|k,v| [k.to_s, v]}.inject({}) do |hash, pair| hash[pair.first] = pair.last hash end end |