lib/classification.rb
8 lines · ruby
Project files
# frozen_string_literal: true
Classification = Data.define(:accepted, :wrong_context, :foreign) do
def initialize(accepted:, wrong_context:, foreign:)
super(accepted: accepted.dup.freeze, wrong_context: wrong_context.dup.freeze,
foreign: foreign.dup.freeze)
end
end
Read along in the manual: The Reloading Lab · Download the project (zip)