Class: Ladybug::RecursiveRel

Inherits:
Object
  • Object
show all
Extended by:
Forwardable, Loggability
Defined in:
lib/ladybug/recursive_rel.rb

Overview

Ladybug recursive relationship class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodesObject (readonly)

The Array of Ladybug::Nodes in the chain



31
32
33
# File 'lib/ladybug/recursive_rel.rb', line 31

def nodes
  @nodes
end

#relsObject (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