On this page
class · Ruby 4.0
Prism::CallNode
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
#===
#accept
#attribute_write?
#call_operator
#call_operator_loc
#child_nodes
#closing
#closing_loc
#comment_targets
#compact_child_nodes
#copy
#deconstruct
#deconstruct_keys
#equal
#equal_loc
#full_message_loc
#ignore_visibility?
#inspect
#message
#message_loc
#opening
#opening_loc
#safe_navigation?
#save_call_operator_loc
#save_closing_loc
#save_equal_loc
#save_message_loc
#save_opening_loc
#type
#variable_call?
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 ^^^