class Fluent::Plugin::TSVParser

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method Fluent::Plugin::ValuesParser#configure
# File lib/fluent/plugin/parser_tsv.rb, line 27
def configure(conf)
  super
  @key_num = @keys.length
end
parse(text) { |values_map(split)| ... } click to toggle source
# File lib/fluent/plugin/parser_tsv.rb, line 32
def parse(text)
  yield values_map(text.split(@delimiter, @key_num))
end