Sha256: 84180ea46fee8dd7cb58878a4a57594b694378fcee7b8ca53fd29d9224c43ee4

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

require 'rib'

module Rib; module BottomupBacktrace
  extend Plugin
  Shell.use(self)

  # --------------- Rib API ---------------

  def format_error err
    return super if BottomupBacktrace.disabled?
    message, backtrace = get_error(err)
    "  #{backtrace.join("\n  ")}\n#{message}"
  end

  def format_backtrace backtrace
    super(backtrace).reverse
  end
end; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rib-1.6.1 lib/rib/more/bottomup_backtrace.rb
rib-1.6.0 lib/rib/more/bottomup_backtrace.rb