Class: Refract::MultiTargetNode
- Defined in:
- lib/refract/nodes/multi_target_node.rb
Instance Attribute Summary collapse
-
#lefts ⇒ Object
Returns the value of attribute lefts.
-
#rest ⇒ Object
Returns the value of attribute rest.
-
#rights ⇒ Object
Returns the value of attribute rights.
Instance Method Summary collapse
-
#initialize(prism_node: nil, lefts:, rest:, rights:) ⇒ MultiTargetNode
constructor
A new instance of MultiTargetNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, lefts:, rest:, rights:) ⇒ MultiTargetNode
Returns a new instance of MultiTargetNode.
5 6 7 8 9 10 11 |
# File 'lib/refract/nodes/multi_target_node.rb', line 5 def initialize(prism_node: nil, lefts:, rest:, rights:) @prism_node = prism_node => Prism::Node | nil @lefts = lefts @rest = rest @rights = rights freeze end |
Instance Attribute Details
#lefts ⇒ Object
Returns the value of attribute lefts.
13 14 15 |
# File 'lib/refract/nodes/multi_target_node.rb', line 13 def lefts @lefts end |
#rest ⇒ Object
Returns the value of attribute rest.
13 14 15 |
# File 'lib/refract/nodes/multi_target_node.rb', line 13 def rest @rest end |
#rights ⇒ Object
Returns the value of attribute rights.
13 14 15 |
# File 'lib/refract/nodes/multi_target_node.rb', line 13 def rights @rights end |