method

values_at

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Core
values_at public

Returns an array of the values returned by the given methods.

topic = Topic.new(title: "Budget", author_name: "Jason")
topic.values_at(:title, :author_name)
=> ["Budget", "Jason"]
Show source
Register or log in to add new notes.