class Fluent::EventRouter::Rule
Attributes
collector[R]
pattern_str[R]
Public Class Methods
new(pattern, collector)
click to toggle source
# File lib/fluent/event_router.rb, line 55 def initialize(pattern, collector) patterns = pattern.split(/\s+/).map { |str| MatchPattern.create(str) } @pattern = if patterns.length == 1 patterns[0] else OrMatchPattern.new(patterns) end @pattern_str = pattern @collector = collector end
Public Instance Methods
match?(tag)
click to toggle source
# File lib/fluent/event_router.rb, line 66 def match?(tag) @pattern.match(tag) end