Class: ActionDispatch::Journey::Nodes::Binary
- Defined in:
- actionpack/lib/action_dispatch/journey/nodes/node.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Attribute Summary collapse
-
#right ⇒ Object
Returns the value of attribute right.
Attributes inherited from Node
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(left, right) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Node
#cat?, #each, #group?, #literal?, #name, #star?, #symbol?, #terminal?, #to_dot, #to_s, #to_sym, #type
Methods included from Enumerable
#as_json, #compact_blank, #exclude?, #excluding, #in_order_of, #including, #index_by, #index_with, #many?, #maximum, #minimum, #pick, #pluck, #sole
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
184 185 186 187 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 184 def initialize(left, right) super(left) @right = right end |
Instance Attribute Details
#right ⇒ Object
Returns the value of attribute right.
182 183 184 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 182 def right @right end |
Instance Method Details
#children ⇒ Object
189 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 189 def children; [left, right] end |