Module: Reaction::HasAttributes::ClassMethods

Defined in:
lib/reaction/has_attributes.rb

Instance Method Summary collapse

Instance Method Details

#attribute(name) ⇒ Object



8
9
10
11
# File 'lib/reaction/has_attributes.rb', line 8

def attribute(name)
  attr_accessor name
  attributes << name
end

#attributesObject



13
14
15
# File 'lib/reaction/has_attributes.rb', line 13

def attributes
  @attributes ||= []
end