Class: ActionDispatch::Journey::Nodes::Or
- Defined in:
- lib/action_dispatch/journey/nodes/node.rb
Overview
:nodoc:
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
#cat?, #each, #group?, #literal?, #name, #star?, #symbol?, #terminal?, #to_dot, #to_s, #to_sym
Constructor Details
#initialize(children) ⇒ Or
Returns a new instance of Or.
134 135 136 |
# File 'lib/action_dispatch/journey/nodes/node.rb', line 134 def initialize(children) @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
132 133 134 |
# File 'lib/action_dispatch/journey/nodes/node.rb', line 132 def children @children end |
Instance Method Details
#type ⇒ Object
138 |
# File 'lib/action_dispatch/journey/nodes/node.rb', line 138 def type; :OR; end |