Skip to content
On this page

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

class · Ruby 3.4

Prism::IndexTargetNode

< Prism::Node 20 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 20

Attributes
Read

attr_reader arguments: ArgumentsNode?

Read

attr_reader block: BlockArgumentNode?

Read

attr_reader receiver: Prism::node