Sha256: f7e4f6cc38fac62ec2e4763d48b83e4e2f0566421adcc5ba4993f3ffd8896322
Contents?: true
Size: 473 Bytes
Versions: 3
Compression:
Stored size: 473 Bytes
Contents
::Enumerable.module_eval do # This is named the same as its Hash counterpart for a reason. I'm not # going to tell you why, consider it my riddle for you. def recursive_symbolize_keys! each do |item| item.recursive_symbolize_keys! if item.respond_to?(:recursive_symbolize_keys!) end self end def recursive_stringify_keys! each do |item| item.recursive_stringify_keys! if item.respond_to?(:recursive_stringify_keys!) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
render-0.0.4 | lib/extensions/enumerable.rb |
render-0.0.3 | lib/extensions/enumerable.rb |
render-0.0.2 | lib/extensions/enumerable.rb |