Class: Refract::CallOperatorWriteNode
- Defined in:
- lib/refract/nodes/call_operator_write_node.rb
Instance Attribute Summary collapse
-
#binary_operator ⇒ Object
Returns the value of attribute binary_operator.
-
#read_name ⇒ Object
Returns the value of attribute read_name.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(prism_node: nil, receiver:, read_name:, binary_operator:, value:) ⇒ CallOperatorWriteNode
constructor
A new instance of CallOperatorWriteNode.
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_operator ⇒ Object
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_name ⇒ Object
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 |
#receiver ⇒ Object
Returns the value of attribute receiver.
14 15 16 |
# File 'lib/refract/nodes/call_operator_write_node.rb', line 14 def receiver @receiver end |
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'lib/refract/nodes/call_operator_write_node.rb', line 14 def value @value end |