Sha256: 7d8401a94ced579e18a8973444df595e5a62c48231451c961f2f3780974bae57
Contents?: true
Size: 382 Bytes
Versions: 4
Compression:
Stored size: 382 Bytes
Contents
module Vedeu module Queue extend self def dequeue store.pop end def enqueue(result) store.unshift(result) end def enqueued? store.size > 0 end def size store.size end def clear store.clear end def view store.inspect end private def store @store ||= [] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.30 | lib/vedeu/support/queue.rb |
vedeu-0.0.29 | lib/vedeu/support/queue.rb |
vedeu-0.0.28 | lib/vedeu/support/queue.rb |
vedeu-0.0.27 | lib/vedeu/support/queue.rb |