Method: Rinda::TupleBag#push
- Defined in:
- lib/rinda/tuplespace.rb
#push(tuple) ⇒ Object
Add tuple
to the TupleBag.
332 333 334 335 336 |
# File 'lib/rinda/tuplespace.rb', line 332 def push(tuple) key = bin_key(tuple) @hash[key] ||= TupleBin.new @hash[key].add(tuple) end |