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