lib/cartridge_case.rb
13 lines · ruby
Project files
# frozen_string_literal: true
CartridgeCase = Data.define(
:caliber, :clean, :primer_pocket_clear, :primer_pocket_prepared,
:sized, :length, :defects
) do
def initialize(caliber:, clean: nil, primer_pocket_clear: nil,
primer_pocket_prepared: nil, sized: nil, length: nil,
defects: nil)
super(caliber:, clean:, primer_pocket_clear:, primer_pocket_prepared:,
sized:, length:, defects: defects.dup.freeze)
end
end
Read along in the manual: The Reloading Lab · Download the project (zip)