Skip to content
On this page
class · Ruby 4.0

Prism::RescueNode

< Prism::Node 20 instance methods 2 class methods

Represents a rescue statement.

begin
rescue Foo, *splat, Bar => ex
  foo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
end

Foo, *splat, Bar are in the exceptions field. ex is in the reference field.

Class methods 2

Instance methods 20

Attributes
Read

attr_reader exceptions: Array

Read

attr_reader statements: StatementsNode?

Read

attr_reader subsequent: RescueNode?