class ParallelRSpec::ExceptionMarshallingWrapper
Some Exception objects contain non-marshallable ivars such as Proc objects. This wrapper represents the bits needed by RSpec’s ExceptionPresenter, and can be dumped and loaded.
Attributes
Public Class Methods
Source
# File lib/parallel_rspec/client.rb, line 7 def initialize(class_name, message, backtrace, cause) @class_name = class_name @message = message @backtrace = backtrace @cause = cause end
Public Instance Methods
Source
# File lib/parallel_rspec/client.rb, line 22 def ==(other) other.is_a?(ExceptionMarshallingWrapper) && class_name == other.class_name && message == other.message && backtrace == other.backtrace && cause == other.cause end
Source
# File lib/parallel_rspec/client.rb, line 14 def class eval "class #{@class_name}; end; #{@class_name}" end
Source
# File lib/parallel_rspec/client.rb, line 18 def inspect "#<#{@class_name}: #{@message}>" end