Method: Tengu::BaseFormatter#notify

Defined in:
lib/tengu/base_formatter.rb

#notify(event, object = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/tengu/base_formatter.rb', line 8

def notify(event, object = nil)
  case event
  when :started then started(object)
  when :pending then out.print "P"
  when :success then out.print "."
  when :failure then
    @failures << object
    out.print "F"
  when :finished then finished(object)
  end
end