method

except

Importance_1
v7.0.0 - Show latest stable - 0 notes - Class: ActiveSupport::HashWithIndifferentAccess
except(*keys) public

Returns a hash with indifferent access that includes everything except given keys.

hash = { a: "x", b: "y", c: 10 }.with_indifferent_access
hash.except(:a, "b") # => {c: 10}.with_indifferent_access
hash                 # => { a: "x", b: "y", c: 10 }.with_indifferent_access
Show source
Register or log in to add new notes.