Class: Rinda::TemplateEntry
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Subclasses:
|
|
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
TupleEntry
|
|
|
Instance Chain:
self,
TupleEntry,
DRbUndumped
|
|
| Inherits: |
Rinda::TupleEntry
|
| Defined in: | lib/rinda/tuplespace.rb |
Overview
A TemplateEntry is a Template together with expiry and cancellation data.
Class Method Summary
TupleEntry - Inherited
| .new | Creates a |
Instance Attribute Summary
TupleEntry - Inherited
| #alive? | A TupleEntry is dead when it is canceled or expired. |
| #canceled? | Returns the canceled status. |
| #expired? | Has this tuple expired? (true/false). |
| #expires | |
Instance Method Summary
-
#===(tuple)
Alias for #match.
-
#match(tuple)
(also: #===)
Matches this
TemplateEntryagainsttuple. - #make_tuple(ary) Internal use only
TupleEntry - Inherited
| #[] | Retrieves |
| #cancel | Marks this |
| #fetch | Fetches |
| #make_expires |
|
| #make_tuple | Creates a |
| #renew | Reset the expiry time according to |
| #size | The size of the tuple. |
| #value | Return the object which makes up the tuple itself: the Array or Hash. |
| #get_renewer | Returns a valid argument to make_expires and the renewer or nil. |
Constructor Details
This class inherits a constructor from Rinda::TupleEntry
Instance Method Details
#===(tuple)
Alias for #match.
# File 'lib/rinda/tuplespace.rb', line 171
alias === match
#make_tuple(ary)
#match(tuple) Also known as: #===
Matches this TemplateEntry against tuple. See Template#match for details on how a Template matches a Tuple.
# File 'lib/rinda/tuplespace.rb', line 167
def match(tuple) @tuple.match(tuple) end