Method: Mash#values_at

Defined in:
lib/extlib/mash.rb

#values_at(*indices) ⇒ Array

Returns The values at each of the provided keys.

Parameters:

  • *indices (Array)

    The keys to retrieve values for. These will be run through convert_key.

Returns:

  • (Array)

    The values at each of the provided keys



84
85
86
# File 'lib/extlib/mash.rb', line 84

def values_at(*indices)
  indices.collect {|key| self[convert_key(key)]}
end