Method: ActiveSupport::HashWithIndifferentAccess#values_at

Defined in:
activesupport/lib/active_support/hash_with_indifferent_access.rb

#values_at(*keys) ⇒ Object

Returns an array of the values at the specified indices:

hash = ActiveSupport::HashWithIndifferentAccess.new
hash[:a] = 'x'
hash[:b] = 'y'
hash.values_at('a', 'b') # => ["x", "y"]


237
238
239
240
# File 'activesupport/lib/active_support/hash_with_indifferent_access.rb', line 237

def values_at(*keys)
  keys.map! { |key| convert_key(key) }
  super
end