Class: Hash

Inherits:
Object show all
Defined in:
lib/volt/extra_core/hash.rb,
lib/volt/extra_core/blank.rb

Direct Known Subclasses

Volt::HttpResponseHeader

Instance Method Summary collapse

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