Skip to content
class method

Prism::Pattern.new

new(query)

Create a new pattern with the given query. The query should be a string containing a Ruby pattern matching expression.

See also #combine_and #combine_or also in 3.4 · 3.3