Class: Hash
- Defined in:
- lib/volt/extra_core/hash.rb,
lib/volt/extra_core/blank.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#without(*keys) ⇒ Object
Returns a hash excluding the keys passed in.
Instance Method Details
#without(*keys) ⇒ Object
Returns a hash excluding the keys passed in.
3 4 5 6 7 |
# File 'lib/volt/extra_core/hash.rb', line 3 def without(*keys) reject do |key, value| keys.include?(key) end end |