Method: Rinda::TupleBag#find_all_template

Defined in:
lib/rinda/tuplespace.rb

#find_all_template(tuple) ⇒ Object

Finds all tuples in the TupleBag which when treated as templates, match tuple and are alive.



371
372
373
374
375
# File 'lib/rinda/tuplespace.rb', line 371

def find_all_template(tuple)
  @enum.find_all do |template|
    template.alive? && template.match(tuple)
  end
end