Methods

Class/Module Index [+]

Quicksearch

Fluent::TextParser::LabeledTSVParser

Public Instance Methods

call(text) click to toggle source
# File lib/fluent/parser.rb, line 149
def call(text)
  @keys  = []
  values = []

  text.split(delimiter).each do |pair|
    key, value = pair.split(label_delimiter, 2)
    @keys.push(key)
    values.push(value)
  end

  return values_map(values)
end
configure(conf) click to toggle source
# File lib/fluent/parser.rb, line 144
def configure(conf)
  conf['keys'] = conf['time_key'] || 'time'
  super(conf)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.