Class: Refract::CallOperatorWriteNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/call_operator_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, receiver:, read_name:, binary_operator:, value:) ⇒ CallOperatorWriteNode

Returns a new instance of CallOperatorWriteNode.



5
6
7
8
9
10
11
12
# File 'lib/refract/nodes/call_operator_write_node.rb', line 5

def initialize(prism_node: nil, receiver:, read_name:, binary_operator:, value:)
	@prism_node = prism_node => Prism::Node | nil
	@receiver = receiver
	@read_name = read_name
	@binary_operator = binary_operator
	@value = value
	freeze
end

Instance Attribute Details

#binary_operatorObject

Returns the value of attribute binary_operator.



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

def binary_operator
  @binary_operator
end

#read_nameObject

Returns the value of attribute read_name.



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

def read_name
  @read_name
end

#receiverObject

Returns the value of attribute receiver.



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

def receiver
  @receiver
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end