Sha256: 2dbb8b8b27ba51e7d84df3b8a745459bc8be263e8fe273d41261b3cd39c5f387

Contents?: true

Size: 173 Bytes

Versions: 7

Compression:

Stored size: 173 Bytes

Contents

module SuckerPunch
  class Queues
    @queues = Set.new

    def self.all
      @queues.to_a
    end

    def self.register(name)
      @queues.add(name)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sucker_punch-1.0.3 lib/sucker_punch/queues.rb
sucker_punch-1.0.2 lib/sucker_punch/queues.rb
sucker_punch-1.0.1 lib/sucker_punch/queues.rb
sucker_punch-1.0.0 lib/sucker_punch/queues.rb
sucker_punch-1.0.0.beta3 lib/sucker_punch/queues.rb
sucker_punch-1.0.0.beta2 lib/sucker_punch/queues.rb
sucker_punch-1.0.0.beta lib/sucker_punch/queues.rb