Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/henshin/ext.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#to_options ⇒ Object
Converts string hash keys to symbol keys.
Instance Method Details
#to_options ⇒ Object
Converts string hash keys to symbol keys
37 38 39 40 41 42 |
# File 'lib/henshin/ext.rb', line 37 def inject({}) do |, (key, value)| [(key.to_sym rescue key) || key] = value end end |