Class: Fluent::OrMatchPattern
- Inherits:
-
MatchPattern
- Object
- MatchPattern
- Fluent::OrMatchPattern
- Defined in:
- lib/fluent/match.rb
Instance Method Summary collapse
-
#initialize(patterns) ⇒ OrMatchPattern
constructor
A new instance of OrMatchPattern.
- #match(str) ⇒ Object
Methods inherited from MatchPattern
Constructor Details
#initialize(patterns) ⇒ OrMatchPattern
169 170 171 |
# File 'lib/fluent/match.rb', line 169 def initialize(patterns) @patterns = patterns end |
Instance Method Details
#match(str) ⇒ Object
173 174 175 |
# File 'lib/fluent/match.rb', line 173 def match(str) @patterns.any? {|pattern| pattern.match(str) } end |