Class: Journey::Nodes::Or
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(children) ⇒ Or
constructor
A new instance of Or.
- #type ⇒ Object
Methods inherited from Node
#each, #literal?, #name, #symbol?, #to_dot, #to_s, #to_sym
Constructor Details
#initialize(children) ⇒ Or
Returns a new instance of Or.
115 116 117 |
# File 'lib/journey/nodes/node.rb', line 115 def initialize children @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
113 114 115 |
# File 'lib/journey/nodes/node.rb', line 113 def children @children end |
Instance Method Details
#type ⇒ Object
119 |
# File 'lib/journey/nodes/node.rb', line 119 def type; :OR; end |