Skip to content
On this page
class · Ruby 4.0

Prism::BeginNode

< Prism::Node 16 instance methods 2 class methods

Represents a begin statement.

begin
  foo
end
^^^^^

Class methods 2

Instance methods 16

Attributes

Represents the else clause within the begin block.

begin x; rescue y; else z; end
                   ^^^^^^

Represents the ensure clause within the begin block.

begin x; ensure y; end
         ^^^^^^^^

Represents the rescue clause within the begin block.

begin x; rescue y; end
         ^^^^^^^^
Read

Represents the statements within the begin block.

begin x end
      ^