Class: Fluent::MatchPattern

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/match.rb

Direct Known Subclasses

AllMatchPattern, GlobMatchPattern, OrMatchPattern

Class Method Summary collapse

Class Method Details

.create(str) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/fluent/match.rb', line 55

def self.create(str)
  if str == '**'
    AllMatchPattern.new
  else
    GlobMatchPattern.new(str)
  end
end