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

< Prism::Node 17 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 17

Attributes
Read

attr_reader exceptions: Array

Read

attr_reader statements: StatementsNode?

Read

attr_reader subsequent: RescueNode?