class Fluent::TextParser::CSVParser
Public Class Methods
new()
click to toggle source
Calls superclass method
Fluent::Parser.new
# File lib/fluent/parser.rb, line 396 def initialize super require 'csv' end
Public Instance Methods
parse(text) { |values_map(parse_line)| ... }
click to toggle source
# File lib/fluent/parser.rb, line 401 def parse(text) if block_given? yield values_map(CSV.parse_line(text)) else return values_map(CSV.parse_line(text)) end end