Flowdock
method

attribute_names

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Attributes
attribute_names() public

Returns an array of attribute names as strings.

class Person
  include ActiveModel::Attributes

  attribute :name, :string
  attribute :age, :integer
end

person = Person.new
person.attribute_names # => ["name", "age"]
Show source
Register or log in to add new notes.