Flowdock
method

attribute_names

Importance_1
v6.1.7.7 - 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.