Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Pattern#combine_or
combine_or(left, right)
lib/prism/pattern.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/pattern.rb, line 108
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.