Follow the Brass

lib/fact_station.rb

9 lines · ruby

Project files
# frozen_string_literal: true

require_relative "press_results"

FactStation = Data.define(:name, :fact) do
  def apply(work)
    StationResult.new(work: work.with_fact(fact), fault: nil)
  end
end

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