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