1 # -*- encoding: binary -*-
6 class BadObjectError < RuntimeError; end
8 def initialize(klass, *args)
17 object = @queue.pop true
19 object = @klass.new(*@args)
26 raise BadObjectError unless @objects.include? o
41 return if @queue.length < 5
43 until @queue.length <= 2 do