lib/vedeu/support/queue.rb in vedeu-0.0.30 vs lib/vedeu/support/queue.rb in vedeu-0.0.31
- old
+ new
@@ -6,20 +6,22 @@
store.pop
end
def enqueue(result)
store.unshift(result)
+
+ self
end
def enqueued?
store.size > 0
end
def size
store.size
end
- def clear
+ def reset
store.clear
end
def view
store.inspect