Module: Gemmy::Patches::HashPatch::InstanceMethods::Except
- Defined in:
- lib/gemmy/patches/hash_patch.rb
Instance Method Summary collapse
-
#except(*less_keys) ⇒ Object
facets excludes vertain keys.
Instance Method Details
#except(*less_keys) ⇒ Object
facets excludes vertain keys
226 227 228 229 230 |
# File 'lib/gemmy/patches/hash_patch.rb', line 226 def except(*less_keys) hash = dup less_keys.each{ |k| hash.delete(k) } hash end |