Class: AcDc::Body
- Defined in:
- lib/acdc/body.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Methods included from Building
Methods included from Mapping
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/acdc/body.rb', line 4 def value @value end |
Class Method Details
.inherited(child) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/acdc/body.rb', line 9 def self.inherited(child) attrs = @attributes.nil? ? {} : @attributes.dup child.instance_variable_set("@attributes", attrs) elems = @elements.nil? ? {} : @elements.dup child.instance_variable_set("@elements", elems) @inheritance_chain ||= [] @inheritance_chain << child AcDc.parseable_constants << child end |