Removes an attribute
either a String
, which is the name of the attribute to remove – namespaces are significant here – or the attribute to remove.
the owning element
doc = Document.new "<a y:foo='0' x:foo='1' foo='3' z:foo='4'/>" doc.root.attributes.delete 'foo' #-> <a y:foo='0' x:foo='1' z:foo='4'/>" doc.root.attributes.delete 'x:foo' #-> <a y:foo='0' z:foo='4'/>" attr = doc.root.attributes.get_attribute('y:foo') doc.root.attributes.delete attr #-> <a z:foo='4'/>"
Only use this if you do not want the XML
declaration to be written; this object is ignored by the XML
writer. Otherwise, instantiate your own XMLDecl
and add it to the document.
Removes tuple
from the TupleBag
.
Moves tuple
to port
.
True if the command handles the given argument list.
A null NameTuple
, ie name=nil, version=0
Indicate if this NameTuple
is for a prerelease version.
A requirement is a prerelease if any of the versions inside of it are prereleases
A version is considered a prerelease if it contains a letter.
The release for this version (e.g. 1.2.0.a -> 1.2.0). Non-prerelease versions return themselves.
Removes all sources from the SourceList
.
Deletes source
from the source list which may be a Gem::Source
or a URI
.
the spec of the gem to be uninstalled
the list of all such gems
Warning: this method modifies the list
parameter. Once it has uninstalled a gem, it is removed from that list.
Display an informational alert. Will ask question
if it is not nil.
Returns the request body.
Returns true
if stat terminated because of an uncaught signal.