Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/warg.rb
Instance Method Summary collapse
Instance Method Details
#transform_keys ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/warg.rb', line 13 def transform_keys if block_given? map { |key, value| [yield(key), value] }.to_h else enum_for(:transform_keys) end end |