Class: Set

Inherits:
Object show all
Defined in:
lib/arachni/ruby/set.rb

Instance Method Summary collapse

Instance Method Details

#shiftObject



12
13
14
15
16
17
18
# File 'lib/arachni/ruby/set.rb', line 12

def shift
    return if @hash.empty?

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