Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Prism::Pattern.new
new(query)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/pattern.rb, line 63
def initialize(query)
@query = query
@compiled = nil
end
Create a new pattern with the given query. The query should be a string containing a Ruby pattern matching expression.