class Hash

Some additions to the hash class

Public Instance Methods

except(*keys) click to toggle source
# File lib/jailofficer/core_ext/hash.rb, line 5
def except(*keys)
  dup.except!(*keys)
end
except!(*keys) click to toggle source
# File lib/jailofficer/core_ext/hash.rb, line 9
def except!(*keys)
  keys.each { |key| delete(key) }
  self
end