Class: Refract::MultiWriteNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/multi_write_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#leftsObject

Returns the value of attribute lefts.



14
15
16
# File 'lib/refract/nodes/multi_write_node.rb', line 14

def lefts
  @lefts
end

#restObject

Returns the value of attribute rest.



14
15
16
# File 'lib/refract/nodes/multi_write_node.rb', line 14

def rest
  @rest
end

#rightsObject

Returns the value of attribute rights.



14
15
16
# File 'lib/refract/nodes/multi_write_node.rb', line 14

def rights
  @rights
end

#valueObject

Returns the value of attribute value.



14
15
16
# File 'lib/refract/nodes/multi_write_node.rb', line 14

def value
  @value
end