Class: Taskinator::ConsoleInstrumenter

Inherits:
Object
  • Object
show all
Defined in:
lib/taskinator.rb

Instance Method Summary collapse

Instance Method Details

#instrument(event, payload = {}) {|payload| ... } ⇒ Object

Yields:

  • (payload)


133
134
135
136
# File 'lib/taskinator.rb', line 133

def instrument(event, payload={})
  puts [event.inspect, payload.to_yaml]
  yield(payload) if block_given?
end