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
#each, #literal?, #name, #symbol?, #to_dot, #to_s, #to_sym, #type
Methods included from Enumerable
#as_json, #exclude?, #index_by, #many?, #sum
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
101 102 103 104 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 101 def initialize(left, right) super(left) @right = right end |
Instance Attribute Details
#right ⇒ Object
Returns the value of attribute right
99 100 101 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 99 def right @right end |
Instance Method Details
#children ⇒ Object
106 |
# File 'actionpack/lib/action_dispatch/journey/nodes/node.rb', line 106 def children; [left, right] end |