On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Prism::IndexOrWriteNode
Represents the use of the ‘||=` operator on a call to [].
foo.bar[baz] ||= value ^^^^^^^^^^^^^^^^^^^^^^
Class methods 2
Instance methods 26
#===
#accept
#attribute_write?
#call_operator
#call_operator_loc
#child_nodes
#closing
#closing_loc
#comment_targets
#compact_child_nodes
#copy
#deconstruct
#deconstruct_keys
#ignore_visibility?
#inspect
#opening
#opening_loc
#operator
#operator_loc
#safe_navigation?
#save_call_operator_loc
#save_closing_loc
#save_opening_loc
#save_operator_loc
#type
#variable_call?
Attributes
Read
attr_reader arguments: ArgumentsNode?
Read
attr_reader block: BlockArgumentNode?
Read
attr_reader receiver: Prism::node?
Read
attr_reader value: Prism::node