lib/zold/node/farm.rb in zold-0.9.10 vs lib/zold/node/farm.rb in zold-0.9.11
- old
+ new
@@ -27,9 +27,16 @@
# Copyright:: Copyright (c) 2018 Yegor Bugayenko
# License:: MIT
module Zold
# Farm
class Farm
+ # Empty farm
+ class Empty
+ def best
+ []
+ end
+ end
+
attr_reader :best
def initialize(invoice, log: Log::Quiet.new)
@log = log
@invoice = invoice
@scores = []