On this page
class · Ruby 4.0
Prism::CallOrWriteNode
Represents the use of the ||= operator on a call.
foo.bar ||= value ^^^^^^^^^^^^^^^^^
Class methods 2
Instance methods 23
#===
#accept
#attribute_write?
#call_operator
#call_operator_loc
#child_nodes
#comment_targets
#compact_child_nodes
#copy
#deconstruct
#deconstruct_keys
#ignore_visibility?
#inspect
#message
#message_loc
#operator
#operator_loc
#safe_navigation?
#save_call_operator_loc
#save_message_loc
#save_operator_loc
#type
#variable_call?
Attributes
Read
Represents the name of the method being called.
foo.bar ||= value # read_name `:bar`
^^^
Read
The object that the method is being called on. This can be either nil or any non-void expressions.
foo.bar ||= value ^^^
Read
Represents the value being assigned.
foo.bar ||= value
^^^^^
Read
Represents the name of the method being written to.
foo.bar ||= value # write_name `:bar=`
^^^