method

values_at

Importance_1
v2.1.0 - Show latest stable - 0 notes - Class: HashWithIndifferentAccess
values_at(*indices) public

Returns an array of the values at the specified indices:

  hash = HashWithIndifferentAccess.new
  hash[:a] = "x"
  hash[:b] = "y"
  hash.values_at("a", "b") # => ["x", "y"]
Show source
Register or log in to add new notes.