lib/run_result.rb
14 lines · ruby
Project files
# frozen_string_literal: true
RunResult = Data.define(:released, :record, :wrong_context, :foreign,
:rejected, :quarantined) do
def initialize(released:, record:, wrong_context:, foreign:, rejected:, quarantined:)
super(released: released.dup.freeze, record:,
wrong_context: wrong_context.dup.freeze, foreign: foreign.dup.freeze,
rejected: rejected.dup.freeze, quarantined: quarantined.dup.freeze)
end
def halted?
false
end
end
Read along in the manual: The Reloading Lab · Download the project (zip)