Sha256: 29d8e8191b9d99902b99e90941952614a91eea0c016d1eba50216665892b84f5

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

require 'set'

class Set
    def shift
        return if @hash.empty?

        key = @hash.first.first
        @hash.delete key
        key
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/ruby/set.rb
arachni-1.3.1 lib/arachni/ruby/set.rb
arachni-1.3 lib/arachni/ruby/set.rb
arachni-1.2.1 lib/arachni/ruby/set.rb
arachni-1.2 lib/arachni/ruby/set.rb
arachni-1.1 lib/arachni/ruby/set.rb