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

< Prism::Node 12 instance methods 2 class methods

Represents the use of the if keyword, either in the block form or the modifier form.

bar if foo
^^^^^^^^^^

if foo then bar end
^^^^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 12

Attributes
Read

attr_reader consequent: Node?

Read

attr_reader predicate: Node

Read

attr_reader statements: StatementsNode?