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

< Prism::Node 19 instance methods 2 class methods

Represents a singleton class declaration involving the class keyword.

class << self end
^^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 19

Attributes
Read

attr_reader body: StatementsNode | BeginNode | nil

Read

attr_reader expression: Prism::node

Read

attr_reader locals: Array[Symbol]