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