Performs a depth-first (document order) XPath
search, and returns the first match. This is the fastest, lightest way to return a single result.
FIXME: This method is incomplete!
Registers for notifications of event ev
on the proxied TupleSpace
. See TupleSpace#notify
Creates a singleton RingFinger
and looks for a RingServer
. Returns the created RingFinger
.
Returns the first advertised TupleSpace
.
Called by TupleSpace
to notify this NotifyTemplateEntry
of a new event.
Retrieves a notification. Raises RequestExpiredError
when this NotifyTemplateEntry
expires.
Registers for notifications of event
. Returns a NotifyTemplateEntry
. See NotifyTemplateEntry
for examples of how to listen for notifications.
event
can be:
A tuple was added
A tuple was taken or moved
A tuple was lost after being overwritten or expiring
The TupleSpace
will also notify you of the ‘close’ event when the NotifyTemplateEntry
has expired.
True when the gem has been activated
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
Reset the authoritative instance of the command manager.