Module: FootStats::AttributeAccessor::ClassMethods
- Defined in:
- lib/foot_stats/attribute_accessor.rb
Instance Method Summary collapse
Instance Method Details
#attribute_accessor(*attrs) ⇒ Object
18 19 20 21 |
# File 'lib/foot_stats/attribute_accessor.rb', line 18 def attribute_accessor(*attrs) self.attributes.concat attrs attr_accessor *attrs end |
#attributes ⇒ Object
14 15 16 |
# File 'lib/foot_stats/attribute_accessor.rb', line 14 def attributes @attributes ||= [] end |