Class: Journey::Nodes::Or

Inherits:
Node
  • Object
show all
Defined in:
lib/journey/nodes/node.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#left, #memo

Instance Method Summary collapse

Methods inherited from Node

#each, #name, #to_dot, #to_s, #to_sym

Constructor Details

#initialize(children) ⇒ Or

Returns a new instance of Or.



97
98
99
# File 'lib/journey/nodes/node.rb', line 97

def initialize children
  @children = children
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



95
96
97
# File 'lib/journey/nodes/node.rb', line 95

def children
  @children
end

Instance Method Details

#typeObject



101
# File 'lib/journey/nodes/node.rb', line 101

def type; :OR; end