Class: AcDc::Body
- Inherits:
-
Object
- Object
- AcDc::Body
- Extended by:
- BodyClassMethods, Parsing
- Includes:
- AcDc::Build::ClassMethods
- Defined in:
- lib/acdc/body.rb
Defined Under Namespace
Modules: BodyClassMethods
Class Method Summary collapse
Methods included from Parsing
Methods included from BodyClassMethods
attribute, attributes, element, elements, namespace, tag_name
Methods included from AcDc::Build::ClassMethods
Class Method Details
.inherited(child) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/acdc/body.rb', line 4 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 end |