class Fluent::OrMatchPattern
Public Class Methods
new(patterns)
click to toggle source
# File lib/fluent/match.rb, line 169 def initialize(patterns) @patterns = patterns end
Public Instance Methods
match(str)
click to toggle source
# File lib/fluent/match.rb, line 173 def match(str) @patterns.any? {|pattern| pattern.match(str) } end