# File drb/timeridconv.rb, line 21 def add(obj) synchronize do key = obj.__id__ @curr[key] = obj return key end end
# File drb/timeridconv.rb, line 29 def fetch(key, dv=@sentinel) synchronize do obj = peek(key) if obj == @sentinel return dv unless dv == @sentinel raise InvalidIndexError end @renew[key] = obj # KeepIt return obj end end