Sha256: 9cf236d6bf4460072e0dc79eb6c4cdcc9a5a7a2b3464a60c0067d938a5b84282

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

module Basket
  class Queue
    def initialize(backend = HashBackend.new)
      @backend = backend
    end

    def push(queue, data)
      @backend.push(queue, data)
      length(queue)
    end

    def length(queue)
      @backend.length(queue)
    end

    def pop_all(queue)
      @backend.pop_all(queue)
    end

    def data
      @backend.data
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basket-0.0.1 lib/basket/queue.rb