Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/henshin/ext.rb
Instance Method Summary collapse
-
#to_options ⇒ Object
stripped straight out of rails converts string keys to symbol keys from api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Hash/Keys.html.
Instance Method Details
#to_options ⇒ Object
stripped straight out of rails converts string keys to symbol keys from api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Hash/Keys.html
38 39 40 41 42 43 |
# File 'lib/henshin/ext.rb', line 38 def inject({}) do |, (key, value)| [(key.to_sym rescue key) || key] = value end end |