Skip to content
On this page
class · Ruby 4.0

Prism::SuperNode

< Prism::Node 19 instance methods 2 class methods

Represents the use of the super keyword with parentheses or arguments.

super()
^^^^^^^

super foo, bar
^^^^^^^^^^^^^^

If no arguments are provided (except for a block), it would be a ForwardingSuperNode instead.

Class methods 2

Instance methods 19

Attributes
Read

Can be only nil when there are empty parentheses, like super().

Read

attr_reader block: BlockNode | BlockArgumentNode | nil