Skip to content
On this page

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class · Ruby 3.3

Prism::DefNode

< Prism::Node 15 instance methods 2 class methods

Represents a method definition.

def method
end
^^^^^^^^^^

Class methods 2

Instance methods 15

Attributes
Read

attr_reader body: Node?

Read

attr_reader equal_loc: Location?

Read

attr_reader locals: Array[Symbol]

Read

attr_reader lparen_loc: Location?

Read

attr_reader name: Symbol

Read

attr_reader name_loc: Location

attr_reader operator_loc: Location?

Read

attr_reader parameters: ParametersNode?

Read

attr_reader receiver: Node?

Read

attr_reader rparen_loc: Location?