class Fluent::Plugin::ProcWrappedFormatter

Public Class Methods

new(proc) click to toggle source
Calls superclass method Fluent::Plugin::Base::new
# File lib/fluent/plugin/formatter.rb, line 40
def initialize(proc)
  super()
  @proc = proc
end

Public Instance Methods

format(tag, time, record) click to toggle source
# File lib/fluent/plugin/formatter.rb, line 45
def format(tag, time, record)
  @proc.call(tag, time, record)
end