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