values_at « Hash « Ruby






1.Retrieve the values out of a hash based on one or more keys with values_at, also placing the value or values in an array:
2.values_at(key) Returns an array consisting of values for the given key(s).