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