Evaluates to true
if this element has at least one child Element
doc = Document.new "<a><b/><c>Text</c></a>" doc.root.has_elements # -> true doc.elements["/a/b"].has_elements # -> false doc.elements["/a/c"].has_elements # -> false
Synonym for Element.elements
.each
Synonym for Element.to_a This is a little slower than calling elements.each directly.
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
Replaces one child with another, making sure the nodelist is correct @param to_replace the child to replace (must be a Child
) @param replacement the child to insert into the nodelist (must be a Child
)
Generates a Source
object @param arg Either a String, or an IO
@return a Source
, or nil if a bad argument was given
@return the current line in the source
@return the current line in the source
Reads all tuples matching tuple
from the proxied TupleSpace
. See TupleSpace#read_all
.
Creates a thread that notifies waiting clients from the TupleSpace
.
Pulls lookup tuples out of the TupleSpace
and sends their DRb
object the address of the local TupleSpace
.
Returns an expiry Time
based on sec
which can be one of:
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.
true
if the TupleBag
to see if it has any expired entries.
Returns all tuples matching tuple
. Does not remove the found tuples.
Notifies all registered listeners for event
of a status change of tuple
.
Returns the full path to this spec’s gem directory. eg: /usr/local/lib/ruby/1.8/gems/mygem-1.0
Returns the full path to the gems directory containing this spec’s gem directory. eg: /usr/local/lib/ruby/1.8/gems
Location of RubyGems.org credentials
Return a hash of predecessors. result[spec]
is an Array of gemspecs that have a dependency satisfied by the named gemspec.
Lazy accessor for the spec’s gem directory.