class Spoom::Coverage::SnapshotPrinter

Public Instance Methods

print_snapshot(snapshot) click to toggle source

Private Instance Methods

percent(value, total) click to toggle source
# File lib/spoom/coverage/snapshot.rb, line 128
def percent(value, total)
  return "" if value.nil? || total.nil? || total == 0
  " (#{(value.to_f * 100.0 / total.to_f).round}%)"
end
print_map(hash, total) click to toggle source