Module: Gemmy::Patches::HashPatch::InstanceMethods::UpdateKeys
- Defined in:
- lib/gemmy/patches/hash_patch.rb
Instance Method Summary collapse
-
#update_keys ⇒ Object
facets in place.
Instance Method Details
#update_keys ⇒ Object
facets in place
35 36 37 38 39 40 41 |
# File 'lib/gemmy/patches/hash_patch.rb', line 35 def update_keys #:yield: if block_given? keys.each { |old_key| store(yield(old_key), delete(old_key)) } else to_enum(:update_keys) end end |