# File 'lib/leafy/utils.rb', line 10defself.stringify_keys(hash)hash.dup.to_a.mapdo|pair|key,value=pair[key.to_s,value.is_a?(Hash)?Leafy::Utils.stringify_keys(value):value]end.to_hend
.symbolize_keys(hash) ⇒ Object
3
4
5
6
7
8
# File 'lib/leafy/utils.rb', line 3defself.symbolize_keys(hash)hash.dup.to_a.mapdo|pair|key,value=pair[key.to_sym,value.is_a?(Hash)?Leafy::Utils.symbolize_keys(value):value]end.to_hend