Method: Attribution::ClassMethods#attributes
- Defined in:
- lib/attribution.rb
#attributes ⇒ Hash{Symbol => Object}
Returns Each attribute name, type and any related metadata in the order in which they were defined.
59 60 61 62 63 64 65 |
# File 'lib/attribution.rb', line 59 def attributes @attributes ||= if superclass && superclass.respond_to?(:attributes) superclass.attributes.dup else [] end end |