Module: CatchNotes::Base::Util::ClassMethods

Defined in:
lib/catch_notes/base.rb

Instance Method Summary collapse

Instance Method Details

#stringify_keys(input_hash) ⇒ Object



156
157
158
159
160
161
# File 'lib/catch_notes/base.rb', line 156

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