Class Net::DNS::Resolver::DnsTimeout
In: lib/net/dns/resolver/timeouts.rb
Parent: Object

Methods

new   pretty_to_s   timeout   to_s  

Attributes

seconds  [R] 

Public Class methods

Public Instance methods

Executes the method‘s block. If the block execution terminates before sec seconds has passed, it returns true. If not, it terminates the execution and raises Timeout::Error. If @seconds is 0 or nil, no timeout is set.

Returns a string representation of the timeout corresponding to the number of @seconds.

[Validate]