# File lib/fluent/match.rb, line 22 def initialize(pattern_str, output) patterns = pattern_str.split(/\s+/).map {|str| MatchPattern.create(str) } if patterns.length == 1 @pattern = patterns[0] else @pattern = OrMatchPattern.new(patterns) end @output = output end
# File lib/fluent/match.rb, line 36 def emit(tag, es) chain = NullOutputChain.instance @output.emit(tag, es, chain) end
# File lib/fluent/match.rb, line 49 def match(tag) if @pattern.match(tag) return true end return false end
Generated with the Darkfish Rdoc Generator 2.