Class: Ladybug::RecursiveRel
- Inherits:
-
Object
- Object
- Ladybug::RecursiveRel
- Extended by:
- Forwardable, Loggability
- Defined in:
- lib/ladybug/recursive_rel.rb
Overview
Ladybug recursive relationship class
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
The Array of Ladybug::Nodes in the chain.
-
#rels ⇒ Object
readonly
The Array of Ladybug::Rels connecting the Nodes in the chain.
Instance Method Summary collapse
-
#initialize(nodes, rels) ⇒ RecursiveRel
constructor
Create a new RecursiveRel with the given
nodesandrels.
Constructor Details
#initialize(nodes, rels) ⇒ RecursiveRel
Create a new RecursiveRel with the given nodes and rels.
19 20 21 22 |
# File 'lib/ladybug/recursive_rel.rb', line 19 def initialize( nodes, rels ) @nodes = nodes @rels = rels end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
The Array of Ladybug::Nodes in the chain
31 32 33 |
# File 'lib/ladybug/recursive_rel.rb', line 31 def nodes @nodes end |
#rels ⇒ Object (readonly)
The Array of Ladybug::Rels connecting the Nodes in the chain
35 36 37 |
# File 'lib/ladybug/recursive_rel.rb', line 35 def rels @rels end |