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:
173 174 175 |
# File 'lib/rinda/tuplespace.rb', line 173 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.
167 168 169 |
# File 'lib/rinda/tuplespace.rb', line 167 def match(tuple) @tuple.match(tuple) end |