class Fluent::TextParser::CSVParser

Public Class Methods

new() click to toggle source
Calls superclass method Fluent::Parser.new
# File lib/fluent/parser.rb, line 435
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 440
def parse(text)
  if block_given?
    yield values_map(CSV.parse_line(text))
  else
    return values_map(CSV.parse_line(text))
  end
end