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

< Prism::Node 11 instance methods 2 class methods

Represents a find pattern in pattern matching.

foo in *bar, baz, *qux
       ^^^^^^^^^^^^^^^

foo in [*bar, baz, *qux]
       ^^^^^^^^^^^^^^^^^

foo in Foo(*bar, baz, *qux)
       ^^^^^^^^^^^^^^^^^^^^

Class methods 2

Instance methods 11

Attributes

attr_reader closing_loc: Location?

Read

attr_reader constant: Node?

Read

attr_reader left: Node

attr_reader opening_loc: Location?

Read

attr_reader requireds: Array[Node]

Read

attr_reader right: Node