Class: CompEx::ComponentRegistry::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/compex/component_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

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

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



7
8
9
# File 'lib/compex/component_registry.rb', line 7

def children
  @children
end

#componentObject

Returns the value of attribute component

Returns:

  • (Object)

    the current value of component



7
8
9
# File 'lib/compex/component_registry.rb', line 7

def component
  @component
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/compex/component_registry.rb', line 7

def name
  @name
end