class Set

Public Instance Methods

shift() click to toggle source
# File lib/arachni/ruby/set.rb, line 12
def shift
    return if @hash.empty?

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