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::CallTargetNode

< Prism::Node 20 instance methods 2 class methods

Represents assigning to a method call.

foo.bar, = 1
^^^^^^^

begin
rescue => foo.bar
          ^^^^^^^
end

for foo.bar in baz do end
    ^^^^^^^

Class methods 2

Instance methods 20

Attributes
Read

Represents the name of the method being called.

foo.bar = 1 # name `:foo`
^^^
Read

The object that the method is being called on. This can be any [non-void expression](github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).

foo.bar = 1
^^^