Skip to content
On this page
class · Ruby 4.0

Prism::CallNode

< Prism::Node 30 instance methods 2 class methods

Represents a method call, in all of the various forms that can take.

foo
^^^

foo()
^^^^^

+foo
^^^^

foo + bar
^^^^^^^^^

foo.bar
^^^^^^^

foo&.bar
^^^^^^^^

Class methods 2

Instance methods 30

Attributes
Read

Represents the arguments to the method call. These can be any non-void expressions.

foo(bar)
    ^^^
Read

Represents the block that is being passed to the method.

foo { |a| a }
    ^^^^^^^^^
Read

Represents the name of the method being called.

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

The object that the method is being called on. This can be either nil or any non-void expression.

foo.bar
^^^

+foo
 ^^^

foo + bar
^^^