Class: Prism::ConstantOperatorWriteNode
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Node
|
|
|
Instance Chain:
self,
Node
|
|
| Inherits: |
Prism::Node
|
| Defined in: | lib/prism/node_ext.rb, lib/prism/desugar_compiler.rb |
Instance Attribute Summary
Node - Inherited
| #newline_flag? | : () -> bool. |
Instance Method Summary
-
#operator
Returns the binary operator used to modify the receiver.
-
#operator_loc
Returns the location of the binary operator used to modify the receiver.
-
#desugar
Internal use only
: () -> node.
Node - Inherited
| #deprecated | : (*String replacements) -> void. |
| #newline_flag! | : (Array lines) -> void. |
Instance Method Details
#desugar
This method is for internal use only.
: () -> node
# File 'lib/prism/desugar_compiler.rb', line 227
def desugar # :nodoc: DesugarOperatorWriteNode.new(self, source, :constant_read_node, :constant_write_node, name: name).compile end
#operator
Returns the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator.
# File 'lib/prism/node_ext.rb', line 481
def operator deprecated("binary_operator") binary_operator end
#operator_loc
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of #binary_operator_loc.
# File 'lib/prism/node_ext.rb', line 490
def operator_loc deprecated("binary_operator_loc") binary_operator_loc end