instance method
values_at
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
values_at(*methods)
Returns an array of the values returned by the given methods.
Parameters
-
methodsrest
Source
# File activerecord/lib/active_record/core.rb, line 735
def values_at(*methods)
methods.flatten.map! { |method| public_send(method) }
end
Defined in activerecord/lib/active_record/core.rb line 735
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Core