Follow the Brass

lib/placement.rb

11 lines · ruby

Project files
# frozen_string_literal: true

Placement = Data.define(:item, :reason) do
  def placed?
    reason.nil?
  end

  def refused?
    !placed?
  end
end

Read along in the manual: The Reloading Lab · Download the project (zip)