Method: DataMapper::Ext::Hash.except
- Defined in:
- lib/dm-core/support/ext/hash.rb
.except(hash, *keys) ⇒ Hash
Returns a hash that includes everything but the given keys.
33 34 35 |
# File 'lib/dm-core/support/ext/hash.rb', line 33 def self.except(hash, *keys) self.except!(hash.dup, *keys) end |