Class: AcDc::Body

Inherits:
Object show all
Includes:
Building, Mapping
Defined in:
lib/acdc/body.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Building

#acdc

Methods included from Mapping

included

Instance Attribute Details

#valueObject

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