Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

Prism::IndexTargetNode

< Prism::Node 14 instance methods 2 class methods

Represents assigning to an index.

foo[bar], = 1
^^^^^^^^

begin
rescue => foo[bar]
          ^^^^^^^^
end

for foo[bar] in baz do end
    ^^^^^^^^

Class methods 2

Instance methods 14

Attributes
Read

attr_reader arguments: ArgumentsNode?

Read

attr_reader block: Node?

attr_reader closing_loc: Location

attr_reader opening_loc: Location

Read

attr_reader receiver: Node