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