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 45 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 38 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 34 def symbol(string) /#{Regexp.escape(string)}/ end