Sha256: e9ac1dfeb23b01ff7ea03986f3c27df08cbb197788d08aaf37752d72f0b8fb54
Contents?: true
Size: 312 Bytes
Versions: 1
Compression:
Stored size: 312 Bytes
Contents
module Zeus class ErrorPrinter attr_reader :error def initialize(error) @error = error end def write_to(io) io.puts "#{error.backtrace[0]}: #{error.message} (#{error.class})" error.backtrace[1..-1].each do |line| io.puts "\tfrom #{line}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zeus-0.4.6 | lib/zeus/error_printer.rb |