class TryCorder::Reporter
Public Class Methods
report()
click to toggle source
# 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
Private Class Methods
divider()
click to toggle source
# File lib/try_corder/reporter.rb, line 27 def self.divider "=====================\n\n" end