Similar to fetch()
, but set
contains unique identifiers.
Yields each message to the passed-in block in turn. Equivalent to:
pop3.mails.each do |popmail| .... end
This method raises a POPError
if an error occurs.
validates typecode v
, returns a true
or false
boolean
Main name of the switch.
Iterates over each option, passing the option to the block
.
Iterates over all IP addresses for name
retrieved from the hosts file.
Iterates over all hostnames for address
retrieved from the hosts file.
Iterates over all IP addresses for name
retrieved from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Iterates over all hostnames for address
retrieved from the DNS
resolver.
address
must be a Resolv::IPv4
, Resolv::IPv6
or a String. Retrieved names will be Resolv::DNS::Name
instances.
Iterates over all typeclass
DNS
resources for name
. See getresource
for argument details.
Iterates over all IP addresses for name
retrieved from the mDNS resolver, provided name ends with “local”. If the name does not end in “local” no records will be returned.
name
can be a Resolv::DNS::Name
or a String. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Synonym for Element.elements
.each
Iterates over the attributes of an Element
. Yields actual Attribute
nodes, not String values.
doc = Document.new '<a x="1" y="2"/>' doc.root.attributes.each_attribute {|attr| p attr.expanded_name+" => "+attr.value }
Replaces one child with another, making sure the nodelist is correct @param to_replace the child to replace (must be a Child
) @param replacement the child to insert into the nodelist (must be a Child
)
Yields the Gem::Specification
for each Tuple
in this AvailableSet