Class: Rinda::TemplateEntry

Inherits:
TupleEntry show all
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

#expires

Instance Method Summary (collapse)

Methods inherited from TupleEntry

#[], #alive?, #cancel, #canceled?, #expired?, #fetch, #initialize, #make_expires, #renew, #size, #value

Methods included from DRb::DRbUndumped

#_dump

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