vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/recursor.rb
# :nodoc: all
#  Like an array, but stores the expiration of each record.
:nodoc: all
Like an array, but stores the expiration of each record.
: nodoc : all Like an array but stores the expiration of each record .
def values
        ret =[]
        keys_to_delete = []
        @mutex.synchronize {
          @hash.keys.each {|address|
            if (@hash[address] > Time.now)
              ret.push(address)
            else
              keys_to_delete.push(address)
            end
          }
          keys_to_delete.each {|key|
            @hash.delete(key)
          }
        }
        return ret
      end
def values ret = [ ] keys_to_delete = [ ] @mutex . synchronize { @hash . keys . each { | address | if ( @hash [ address ] > Time . now ) ret . push ( address ) else keys_to_delete . push ( address ) end } keys_to_delete . each { | key | @hash . delete ( key ) } } return ret end
:nodoc: all
Like an array, but stores the expiration of each record.
: nodoc : all Like an array but stores the expiration of each record .