Similar to sort()
, but returns an array of unique identifiers.
Leaves IDLE.
returns the port for POP3
Opens a POP3
session, attempts authentication, and quits.
This method raises POPAuthenticationError
if authentication fails.
POP3
Net::POP3.auth_only('pop.example.com', 110, 'YourAccount', 'YourPassword')
APOP
Net::POP3.auth_only('pop.example.com', 110, 'YourAccount', 'YourPassword', true)
Starts a pop3 session, attempts authentication, and quits. This method must not be called while POP3
session is opened. This method raises POPAuthenticationError
if authentication fails.
The default SMTP
port number, 25.
Private setter for the path of the URI::FTP
Main name of the switch.
see Enumerator
#with_index.
see Enumerator
#with_object.
Replaces this object with another object. Basically, calls Parent.replace_child
self
Sets the previous sibling of this child. This can be used to insert a child before some other child.
a = Element.new("a") b = a.add_element("b") c = Element.new("c") b.previous_sibling = c # => <a><b/><c/></a>
According to the XML
spec, a root node has no expanded name
@return the XMLDecl
standalone value of this document as a String. If no XMLDecl
has been set, returns the default setting.
Adds a namespace to this element.
the prefix string, or the namespace URI
if uri
is not supplied
the namespace URI
. May be nil, in which prefix
is used as the URI
Evaluates to: this Element
a = Element.new("a") a.add_namespace("xmlns:foo", "bar" ) a.add_namespace("foo", "bar") # shorthand for previous line a.add_namespace("twiddle") puts a #-> <a xmlns:foo='bar' xmlns='twiddle'/>