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