Similar to search()
, but returns unique identifiers.
Leaves IDLE.
true if server advertises STARTTLS. You cannot get valid value before opening SMTP
session.
true if this object uses STARTTLS when server advertises STARTTLS.
Enables SMTP/TLS (STARTTLS) for this object. context
is a OpenSSL::SSL::SSLContext
object.
Disables SMTP/TLS (STARTTLS) for this object. Must be called before the connection is established to have any effect.
Parses argument, converts and returns arg
, block
and result of conversion. Yields at semi-error condition instead of raising an exception.
Sets the next sibling of this child. This can be used to insert a child after some other child.
a = Element.new("a") b = a.add_element("b") c = Element.new("c") b.next_sibling = c # => <a><b/><c/></a>
@return the XMLDecl
standalone value of this document as a String. If no XMLDecl
has been set, returns the default setting.
Returns the next sibling that is an element, or nil if there is no Element
sibling after this one
doc = Document.new '<a><b/>text<c/></a>' doc.root.elements['b'].next_element #-> <c/> doc.root.elements['c'].next_element #-> nil
Deeply clones this object. This creates a complete duplicate of this Parent
, including all descendants.
Creates a thread that scans the tuplespace for expired tuples.
Checks the tuplespace to see if it needs cleaning.
Set
@@default_parser to new_value if it is one of the available parsers. Else raise NotValidXMLParser
error.
maybe_xml? tests if source is a string that looks like XML
.