Parent

Methods

Class/Module Index [+]

Quicksearch

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 53
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 64
def match?(tag)
  @pattern.match(tag)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.