def deconstruct: () -> Array[nil | Node]
def opening: () -> String
def content: () -> String
def accept: (Visitor
visitor) -> void
def copy: (?node_id: Integer
, ?location: Location
, ?flags: Integer
, ?keyword_loc: Location
, ?lparen_loc: Location
?, ?arguments: ArgumentsNode
?, ?rparen_loc: Location
?) -> YieldNode
def deconstruct: () -> Array[nil | Node]
Create a new location object with the given options.
Returns a new location that is the result of chopping off the last byte.
Gets all IP addresses for name
from the hosts file.
Creates a new DNS
resolver. See Resolv::DNS.new
for argument details.
Yields the created DNS
resolver to the block, if given, otherwise returns it.
Sets the resolver timeouts. This may be a single positive number or an array of positive numbers representing timeouts in seconds. If an array is specified, a DNS
request will retry and wait for each successive interval in the array until a successful response is received. Specifying nil
reverts to the default timeouts:
Example:
dns.timeouts = 3
Closes the DNS
resolver.
Gets all IP addresses for name
from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6