method

values_at

Importance_1
Ruby latest stable (v1_8_7_72) - 0 notes - Class: Hash
values_at(...) public

Return an array containing the values associated with the given keys. Also see Hash.select.

  h = { "cat" => "feline", "dog" => "canine", "cow" => "bovine" }
  h.values_at("cow", "cat")  #=> ["bovine", "feline"]
Show source
Register or log in to add new notes.