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
.
Arguments used when building gems
Handle the command arguments.
Reads the file index and extracts each file into the gem directory.
Ensures that files can’t be installed outside the gem directory.
Extracts only the bin/ files from the gem into the gem directory. This is used by default gems to allow a gem-aware stub to function without the full gem installed.
Extracts the files in this package into destination_dir
If pattern
is specified, only entries matching that glob will be extracted.
Prepares the gem for signing and checksum generation. If a signing certificate and key are not present only checksum generation is set up.