Methods
M
N
Attributes
[R] length
[R] size
Class Public methods
new(list)
# File sample/drb/old_tuplespace.rb, line 10
def initialize(list)
  @list = list
  @check_idx = []
  @list.each_with_index do |x, i|
    @check_idx.push i if x
  end
  @size = @list.size
end
Instance Public methods
match(tuple)
# File sample/drb/old_tuplespace.rb, line 22
def match(tuple)
  return nil if tuple.size != self.size
  @check_idx.each do |i|
    unless @list[i] === tuple[i]
      return false
    end
  end
  return true
end