Class Methods
::
lib/rinda/tuplespace.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rinda/tuplespace.rb, line 294
def initialize
@bin = []
end
No documentation available
Instance Methods
lib/rinda/tuplespace.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rinda/tuplespace.rb, line 298
def add(tuple)
@bin.push(tuple)
end
No documentation available
lib/rinda/tuplespace.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rinda/tuplespace.rb, line 302
def delete(tuple)
idx = @bin.rindex(tuple)
@bin.delete_at(idx) if idx
end
No documentation available
lib/rinda/tuplespace.rb
View on GitHub
# File tmp/rubies/ruby-2.6.10/lib/rinda/tuplespace.rb, line 307
def find
@bin.reverse_each do |x|
return x if yield(x)
end
nil
end
No documentation available