instance method
Prism::Pattern#combine_or
combine_or(left, right)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/prism/pattern.rb, line 109
def combine_or(left, right)
->(other) { left.call(other) || right.call(other) }
end
Shortcut for combining two procs into one that returns true if either returns true.