Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/report_builder/core-ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#except(*keys) ⇒ Object



2
3
4
# File 'lib/report_builder/core-ext/hash.rb', line 2

def except(*keys)
  dup.except!(*keys)
end

#except!(*keys) ⇒ Object



6
7
8
9
# File 'lib/report_builder/core-ext/hash.rb', line 6

def except!(*keys)
  keys.each { |key| delete(key) }
  self
end