class Fluent::TextParser::TSVParser
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::TextParser::ValuesParser#configure
# File lib/fluent/parser.rb, line 338 def configure(conf) super @key_num = @keys.length end
parse(text) { |values_map(split)| ... }
click to toggle source
# File lib/fluent/parser.rb, line 343 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