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

< Prism::Node 11 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 exception field.

Class methods 2

Instance methods 11

Attributes
Read

attr_reader consequent: RescueNode?

Read

attr_reader exceptions: Array[Node]

attr_reader keyword_loc: Location

attr_reader operator_loc: Location?

Read

attr_reader reference: Node?

Read

attr_reader statements: StatementsNode?