stephancom/xkcd-287

View on GitHub
lib/exord/exactinator/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Exord
  module Exactinator
    # generates a list of all possible orders for a menu with a given total
    # abstract class
    class Base
      attr_reader :orders
      def initialize(menu, total)
        @menu = menu
        @total = total
        @orders = []
      end

      # @abstract Subclass is expected to implement #run
      # @!method run
      #    generate a list of all possible orders with that total
    end
  end
end