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