class Fluent::TextParser::TSVParser

Public Instance Methods

configure(conf) click to toggle source
# File lib/fluent/parser.rb, line 392
def configure(conf)
  super
  @key_num = @keys.length
end
parse(text) { |values_map(split)| ... } click to toggle source
# File lib/fluent/parser.rb, line 397
def parse(text)
  if block_given?
    yield values_map(text.split(@delimiter, @key_num))
  else
    return values_map(text.split(@delimiter, @key_num))
  end
end