Sha256: 76b77516f5fe8eb8bbb7afc9b8cb1219628492b5f071d89783d4e7059325f67b
Contents?: true
Size: 252 Bytes
Versions: 2
Compression:
Stored size: 252 Bytes
Contents
class Hash def symbolize_keys_deep! keys.each do |k| symbol_key_name = k.to_sym self[symbol_key_name] = self.delete(k) self[symbol_key_name].symbolize_keys_deep! if self[symbol_key_name].kind_of? Hash end self end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fucking_shell_scripts-1.1 | lib/core_ext/hash.rb |
fucking_shell_scripts-1.0 | lib/core_ext/hash.rb |