Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/pdksync/configuration.rb
Overview
monkey patch
Instance Method Summary collapse
-
#transform_keys_to_symbols ⇒ Object
take keys of hash and transform those to a symbols.
Instance Method Details
#transform_keys_to_symbols ⇒ Object
take keys of hash and transform those to a symbols
152 153 154 |
# File 'lib/pdksync/configuration.rb', line 152 def transform_keys_to_symbols each_with_object({}) { |(k, v), memo| memo[k.to_sym] = v; } end |