Rinda::TemplateEntry (Class)

In: rinda/tuplespace.rb
Parent: TupleEntry

The same as a TupleEntry but with methods to do matching.

Methods

===   make_tuple   match   new  

Public Class methods

[Source]

# File rinda/tuplespace.rb, line 128
    def initialize(ary, expires=nil)
      super(ary, expires)
      @template = Rinda::Template.new(ary)
    end

Public Instance methods

An alias for match.

[Source]

# File rinda/tuplespace.rb, line 138
    def ===(tuple)
      match(tuple)
    end

Create a new Template from the supplied object.

[Source]

# File rinda/tuplespace.rb, line 143
    def make_tuple(ary)
      Rinda::Template.new(ary)
    end

[Source]

# File rinda/tuplespace.rb, line 133
    def match(tuple)
      @template.match(tuple)
    end

[Validate]