Module: Cms::Extensions::Hash
- Defined in:
- lib/cms/extensions/hash.rb
Instance Method Summary collapse
-
#except(*args) ⇒ Object
Returns a copy of the hash without the keys passed as arguments.
Instance Method Details
#except(*args) ⇒ Object
Returns a copy of the hash without the keys passed as arguments
5 6 7 |
# File 'lib/cms/extensions/hash.rb', line 5 def except(*args) reject {|k,v| args.include?(k) } end |