method

key?

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: HashWithIndifferentAccess
key?(key) public

Checks the hash for a key matching the argument passed in:

  hash = HashWithIndifferentAccess.new
  hash["key"] = "value"
  hash.key? :key  # => true
  hash.key? "key" # => true
Show source
Register or log in to add new notes.