Class: Rinda::TemplateEntry
- Inherits:
-
TupleEntry
- Object
- TupleEntry
- Rinda::TemplateEntry
- Defined in:
- lib/rinda/tuplespace.rb
Overview
A TemplateEntry is a Template together with expiry and cancellation data.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from TupleEntry
Instance Method Summary collapse
-
#make_tuple(ary) ⇒ Object
:nodoc:.
-
#match(tuple) ⇒ Object
(also: #===)
Matches this TemplateEntry against
tuple
.
Methods inherited from TupleEntry
#[], #alive?, #cancel, #canceled?, #expired?, #fetch, #initialize, #make_expires, #renew, #size, #value
Constructor Details
This class inherits a constructor from Rinda::TupleEntry
Instance Method Details
#make_tuple(ary) ⇒ Object
:nodoc:
174 175 176 |
# File 'lib/rinda/tuplespace.rb', line 174 def make_tuple(ary) # :nodoc: Rinda::Template.new(ary) end |
#match(tuple) ⇒ Object Also known as: ===
Matches this TemplateEntry against tuple
. See Template#match for details on how a Template matches a Tuple.
168 169 170 |
# File 'lib/rinda/tuplespace.rb', line 168 def match(tuple) @tuple.match(tuple) end |