lib/qfill/pusher.rb in qfill-0.0.2 vs lib/qfill/pusher.rb in qfill-0.0.3

- old
+ new

@@ -79,7 +79,15 @@ Qfill::Result.new(hash) end Qfill::Pusher.new(*args) end + def more_to_fill? + !self.queues.select {|x| !x.is_full?}.empty? + end + + def next_to_fill + self.queues.select {|x| !x.is_full?}.first + end + end end