Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/core_ext/hash.rb
Overview
Instance Method Summary collapse
Instance Method Details
#except(*keys) ⇒ Object
3 4 5 |
# File 'lib/core_ext/hash.rb', line 3 def except(*keys) dup.except!(*keys) end |
#except!(*keys) ⇒ Object
7 8 9 10 |
# File 'lib/core_ext/hash.rb', line 7 def except!(*keys) keys.each { |key| delete(key) } self end |