Sha256: ffbc822c394fda164d13e577dc870a0153acd9f4e83d490e5a372160b61cb27d

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

require 'show_me_the_object'

module ShowMeTheObject
  module Exception
    attr_accessor :__raiser

    def message
      raised_by = if __raiser.respond_to?(:ai)
        __raiser.ai
      else
        __raiser.inspect
      end
      "#{super}\nRaised by: \n#{raised_by}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
show_me_the_object-0.1.0 lib/show_me_the_object/exception.rb