Class: TryCorder::Reporter
Class Method Summary collapse
Class Method Details
.report ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/try_corder/reporter.rb', line 3 def self.report output = "\n\n" + divider TryCorder::Recorder.instance.counter.each do |k,v| try_count = 0 output << "#{k}\n" output << "--------------------\n" v.each do |k,v| output << "#{k}: #{v}\n" try_count += v end output << "\n\nTotal uses of :try for this class: #{try_count}\n\n" end output << divider puts output end |