Method: Bundler::Thor::CoreExt::HashWithIndifferentAccess#except

Defined in:
lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb

#except(*keys) ⇒ Object



31
32
33
34
35
# File 'lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb', line 31

def except(*keys)
  dup.tap do |hash|
    keys.each { |key| hash.delete(convert_key(key)) }
  end
end