Sha256: 82e3f559f620bd81ea435af58600b2a82d121b0f77ddd11c9e0d83e2b075035f
Contents?: true
Size: 394 Bytes
Versions: 5
Compression:
Stored size: 394 Bytes
Contents
module Vedeu module Queue extend self def dequeue store.pop end def enqueue(result) store.unshift(result) self end def enqueued? store.size > 0 end def size store.size end def reset store.clear end def view store.inspect end private def store @store ||= [] end end end
Version data entries
5 entries across 5 versions & 1 rubygems