Sha256: b05c0367c5665b484640cabe75f3ac5edad5d869703181be03e41e2220292bf0

Contents?: true

Size: 180 Bytes

Versions: 10

Compression:

Stored size: 180 Bytes

Contents

class Hash
  def recursive_symbolize_keys!
    symbolize_keys!
    values.select do |v|
      v.is_a? Hash
    end.each do |h|
      h.recursive_symbolize_keys!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
wordmove-1.3.0.pre2 lib/wordmove/core_ext.rb
wordmove-1.3.0.pre lib/wordmove/core_ext.rb
wordmove-1.2.0 lib/wordmove/core_ext.rb
wordmove-1.1.0 lib/wordmove/core_ext.rb
wordmove-1.0.19 lib/wordmove/core_ext.rb
wordmove-1.0.18 lib/wordmove/core_ext.rb
wordmove-1.0.17 lib/wordmove/core_ext.rb
wordmove-1.0.16 lib/wordmove/core_ext.rb
wordmove-1.0.15 lib/wordmove/core_ext.rb
wordmove-1.0.14 lib/wordmove/core_ext.rb