Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Pattern#combine_and
combine_and(left, right)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/prism/pattern.rb, line 95
def combine_and(left, right)
->(other) { left.call(other) && right.call(other) }
end
Shortcut for combining two procs into one that returns true if both return true.