instance method
Prism::Pattern#combine_and
combine_and(left, right)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/pattern.rb, line 103
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.