method

values_at

Importance_1
v8.1.1 - Show latest stable - 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.