Sha256: db724028e58eed57982eaf1c6509b14731ab430f69b8bce5f04e9a5ac15320bb

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

=begin
    Copyright 2010-2014 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

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 lib/arachni/ruby/set.rb
arachni-1.0.5 lib/arachni/ruby/set.rb
arachni-1.0.4 lib/arachni/ruby/set.rb
arachni-1.0.3 lib/arachni/ruby/set.rb
arachni-1.0.2 lib/arachni/ruby/set.rb
arachni-1.0.1 lib/arachni/ruby/set.rb
arachni-1.0 lib/arachni/ruby/set.rb