Method: Bluepill::ProcessStatistics#to_s

Defined in:
lib/bluepill/process_statistics.rb

#to_sObject



18
19
20
21
22
23
24
# File 'lib/bluepill/process_statistics.rb', line 18

def to_s
  str = events.reverse.map do |(event, reason, time)|
    "  #{event} at #{time.strftime(STRFTIME)} - #{reason || "unspecified"}"
  end.join("\n")

  "event history:\n#{str}"
end