module Representable::Hash::Conversion

Public Class Methods

stringify_keys(hash) click to toggle source
# 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