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