Method: Fluent::Plugin::CSVParser#configure
- Defined in:
- lib/fluent/plugin/parser_csv.rb
#configure(conf) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/fluent/plugin/parser_csv.rb', line 33 def configure(conf) super if @parser_engine == :fast @quote_char = '"' @escape_pattern = Regexp.compile(@quote_char * 2) m = method(:parse_fast) self.singleton_class.module_eval do define_method(:parse, m) end end end |