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.
Instance Attribute Summary
Attributes inherited from TupleEntry
Instance Method Summary (collapse)
-
- (Object) make_tuple(ary)
:nodoc:.
-
- (Object) match(tuple)
(also: #===)
Matches this TemplateEntry against tuple.
Methods inherited from TupleEntry
#[], #alive?, #cancel, #canceled?, #expired?, #fetch, #initialize, #make_expires, #renew, #size, #value
Methods included from DRb::DRbUndumped
Constructor Details
This class inherits a constructor from Rinda::TupleEntry
Instance Method Details
- (Object) make_tuple(ary)
:nodoc:
174 175 176 |
# File 'lib/rinda/tuplespace.rb', line 174 def make_tuple(ary) # :nodoc: Rinda::Template.new(ary) end |
- (Object) match(tuple) 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 |