Returns a String representation of the URI::FTP
Inserts switch
at the head of the list, and associates short, long and negated long options. Arguments are:
switch
OptionParser::Switch
instance to be inserted.
short_opts
List
of short style options.
long_opts
List
of long style options.
nolong_opts
List
of long style options with “no-” prefix.
prepend(switch, short_opts, long_opts, nolong_opts)
Pushes back erred argument(s) to argv
.
Returns error reason. Override this for I18N.
Appends sep
to the text to be output. By default sep
is ‘ ’
width
argument is here for compatibility. It is a noop argument.
This is used as a predicate, and ought to be called first.
Rewinds the internal position for enumeration.
See Enumerator
#rewind.
Gets the IP address of name
from the hosts file.
Gets all IP addresses for name
from the hosts file.
Gets the IP address of name
from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String. Retrieved address will be a Resolv::IPv4
or Resolv::IPv6
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
Look up the typeclass
DNS
resource of name
.
name
must be a Resolv::DNS::Name
or a String.
typeclass
should be one of the following:
Resolv::DNS::Resource::IN::ANY
Resolv::DNS::Resource::IN::CNAME
Resolv::DNS::Resource::IN::HINFO
Resolv::DNS::Resource::IN::MINFO
Resolv::DNS::Resource::IN::MX
Resolv::DNS::Resource::IN::NS
Resolv::DNS::Resource::IN::PTR
Resolv::DNS::Resource::IN::SOA
Resolv::DNS::Resource::IN::TXT
Returned resource is represented as a Resolv::DNS::Resource
instance, i.e. Resolv::DNS::Resource::IN::A
.
Looks up all typeclass
DNS
resources for name
. See getresource
for argument details.
Creates a new IPv6
address from arg
which may be:
IPv6
returns arg
.
arg
must match one of the IPv6::Regex* constants
Returns the namespace of the attribute.
e = Element.new( "elns:myelement" ) e.add_attribute( "nsa:a", "aval" ) e.add_attribute( "b", "bval" ) e.attributes.get_attribute( "a" ).prefix # -> "nsa" e.attributes.get_attribute( "b" ).prefix # -> "elns" a = Attribute.new( "x", "y" ) a.prefix # -> ""
Returns the attribute value, with entities replaced
Removes this Attribute
from the tree, and returns true if successful
This method is usually not called directly.
Returns the content of this CData
object
Examples
c = CData.new( "Some text" ) c.to_s # -> "Some text"