Class: CompEx::ComponentRegistry::Node
- Inherits:
-
Struct
- Object
- Struct
- CompEx::ComponentRegistry::Node
- Defined in:
- lib/compex/component_registry.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#component ⇒ Object
Returns the value of attribute component.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
8 9 10 11 |
# File 'lib/compex/component_registry.rb', line 8 def initialize(*) super self.children ||= [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
7 8 9 |
# File 'lib/compex/component_registry.rb', line 7 def children @children end |
#component ⇒ Object
Returns the value of attribute component
7 8 9 |
# File 'lib/compex/component_registry.rb', line 7 def component @component end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/compex/component_registry.rb', line 7 def name @name end |