module Fluent::Config::BasicParser::ClassMethods
Public Instance Methods
def_literal(method_name, string)
click to toggle source
# File lib/fluent/config/basic_parser.rb, line 44 def def_literal(method_name, string) pattern = /#{string}#{LINE_END}/ define_method(method_name) do skip(pattern) && string end end
def_symbol(method_name, string)
click to toggle source
# File lib/fluent/config/basic_parser.rb, line 37 def def_symbol(method_name, string) pattern = symbol(string) define_method(method_name) do skip(pattern) && string end end
symbol(string)
click to toggle source
# File lib/fluent/config/basic_parser.rb, line 33 def symbol(string) /#{Regexp.escape(string)}/ end