Class: Fluent::OrMatchPattern

Inherits:
MatchPattern show all
Defined in:
lib/fluent/match.rb

Instance Method Summary collapse

Methods inherited from MatchPattern

create

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