Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/samanage.rb
Instance Method Summary collapse
Instance Method Details
#except(*keys) ⇒ Object
36 37 38 |
# File 'lib/samanage.rb', line 36 def except(*keys) dup.except!(*keys) end |
#except!(*keys) ⇒ Object
32 33 34 35 |
# File 'lib/samanage.rb', line 32 def except!(*keys) keys.each { |key| delete(key) } self end |