Rindaによるプログラミング
Programming in Rinda
|
require 'rinda/rinda' require 'delicious' TS_URI = 'druby://localhost:12345' USER = 'masui' ts = DRbObject.new(nil,TS_URI) # タプル空間に接続 while true ts.write(['weight',$$,""]) # 体重値タプル取得 val = ts.take(['weight',$$,Float])[2] register(USER) if val > 4.0 end