Sha256: 0b451f2decb0cd8066ec642f9cb0067a7e0b73c99af886e8af48956c332d3ded

Contents?: true

Size: 194 Bytes

Versions: 2

Compression:

Stored size: 194 Bytes

Contents

class Hash
  def deep_stringify_keys
    new_hash = {}
    self.each do |key, value|
      new_hash.merge!(key.to_s => (value.is_a?(Hash) ? value.deep_stringify_keys : value)))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ourkudos-0.0.6 lib/ourkudos/extensions.rb
ourkudos-0.0.5 lib/ourkudos/extensions.rb