Method: Rinda::TupleBag#find
- Defined in:
- lib/rinda/tuplespace.rb
#find(template) ⇒ Object
Finds a live tuple that matches template
.
361 362 363 364 365 |
# File 'lib/rinda/tuplespace.rb', line 361 def find(template) bin_for_find(template).find do |tuple| tuple.alive? && template.match(tuple) end end |