Class: Filter::Or
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(*patterns) ⇒ Or
constructor
A new instance of Or.
Methods inherited from Condition
Constructor Details
Instance Method Details
#===(other) ⇒ Object
9 10 11 |
# File 'lib/filter/or.rb', line 9 def ===(other) @matchers.any? { |m| m === other } end |