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



19
20
21
22
23
24
25
# File 'lib/fluent/match.rb', line 19

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