Returns the previous sibling that is an element, or nil if there is no Element
sibling prior to this one
doc = Document.new '<a><b/>text<c/></a>' doc.root.elements['c'].previous_element #-> <b/> doc.root.elements['b'].previous_element #-> nil
Deeply clones this object. This creates a complete duplicate of this Parent
, including all descendants.
Returns a String
namespace for a node, given a prefix The rules are:
1. Use the supplied namespace mapping first. 2. If no mapping was supplied, use the context node to look up the namespace
Returns a valid argument to make_expires
and the renewer or nil.
Given true
, nil
, or Numeric
, returns that value and nil
(no actual renewer). Otherwise it returns an expiry value from calling it.renew
and the renewer.
Notifies all registered listeners for event
of a status change of tuple
.
Checks the tuplespace to see if it needs cleaning.
Try to get the XML
associated with rss
. Return rss
if it already looks like XML
, or treat it as a URI
, or a file to get the XML
,
register uri against this name.
test if this uri is registered against this name
Returns the full path to the base gem directory.
eg: /usr/local/lib/ruby/gems/1.8
Full path of the target library file. If the file is not in this gem, return nil.
Paths in the gem to add to $LOAD_PATH
when this gem is activated.
See also require_paths=
If you have an extension you do not need to add "ext"
to the require path, the extension build process will copy the extension files into “lib” for you.
The default value is "lib"
Usage:
# If all library files are in the root directory... spec.require_path = '.'
Returns the paths to the source files for use with analysis and documentation tools. These paths are relative to full_gem_path.
Arguments used when building gems