Returns this attribute out as XML
source, expanding the name
a = Attribute.new( "x", "y" ) a.to_string # -> "x='y'" b = Attribute.new( "ns:x", "y" ) b.to_string # -> "ns:x='y'"
Method
contributed by Henrik Martensson
Inserts an child after another child @param child1 this is either an xpath or an Element
. If an Element
, child2 will be inserted after child1 in the child list of the parent. If an xpath, child2 will be inserted after the first child to match the xpath. @param child2 the child to insert @return the parent (self)
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.
Override to display the default values of the command options. (similar to arguments
, but displays the default values).
For example:
def defaults_str --no-gems-first --no-all end
Add a command-line option and handler to the command.
See OptionParser#make_switch
for an explanation of opts
.
handler
will be called with two values, the value of the argument and the options hash.
If the first argument of add_option
is a Symbol
, it’s used to group options in output. See ‘gem help list` for an example.
Return a sorted list of all command names as strings.
Compacts Marshal
output for the specs index data source by using identical objects as much as possible.
Turn an array of [name, version, platform] into an array of NameTuple
objects.
Copies this package to path
(if possible)