Methods

Class/Module Index [+]

Quicksearch

Fluent::TextParser::CSVParser

Public Class Methods

new() click to toggle source
# File lib/fluent/parser.rb, line 361
def initialize
  super
  require 'csv'
end

Public Instance Methods

call(text) click to toggle source
# File lib/fluent/parser.rb, line 366
def call(text)
  if block_given?
    yield values_map(CSV.parse_line(text))
  else
    return values_map(CSV.parse_line(text))
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.