hsh.values_at(key, ...) â array
Instance Public methods
Return an array containing the values associated with the given keys. Also
see Hash.select
.
1 2 | h = { "cat" => "feline" , "dog" => "canine" , "cow" => "bovine" } h.values_at( "cow" , "cat" ) #=> ["bovine", "feline"] |
Please login to continue.