class DeepTest::Worker::Error

Attributes

error[RW]
work_unit[RW]

Public Class Methods

new(work_unit, error) click to toggle source
# File lib/deep_test/worker.rb, line 43
def initialize(work_unit, error)
  @work_unit, @error = work_unit, error
end

Public Instance Methods

==(other) click to toggle source
# File lib/deep_test/worker.rb, line 47
def ==(other)
  work_unit == other.work_unit &&
      error == other.error
end
to_s() click to toggle source
# File lib/deep_test/worker.rb, line 52
def to_s
  "#{@work_unit}: #{@error}\n" + (@error.backtrace || []).join("\n")
end