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