On 18.12.2008, at 02:27 , e deleflie wrote:

class Outside
 @baba = WayOutside.new()
 def runTread


That does not mean what you think it does.

Try this and it'll work:

class WayOutside
 def sayBang
   debug "bang!"
 end
end

class Outside
 def initialize
  @baba = WayOutside.new()
 end
 def runTread
   Thread.new do
     @baba.sayBang
     loop do
       debug "testing"
       sleep (rand(30)+10)/10
     end
   end
 end
end

Shoes.app do
      Outside.new.runTread
      para "testing"
end


einarmagnus



Reply via email to