On Wed, Aug 20, 2008 at 11:22 AM, Jean Lazarou <[EMAIL PROTECTED]> wrote: > Thank you all for answering, but if I go for simplicity nothing works... > > 34 Shoes.app :height => 260, :width => 250 do > 35 animate(1) do > 36 @time = Time.now > 37 clear do > 38 draw_background > 39 stack do > 40 puts "Time = [EMAIL PROTECTED]" > 41 end > 42 end > 43 end > 44 def draw_background > 45 puts "draw_background" > 46 end > 47 end
-snip- > test.rb:38: undefined local variable or method `draw_background' for > #<Object:0x288fa34 @time=Wed Aug 20 19:56:46 +0200 2008> (NameError) > from test.rb:27:in `clear' I snipped the bit about redefining Shoes.app, not sure what the intent there is.. but.. I think here a simple problem is that you have called draw_background before it is defined. -- Seth Thomas Rasmussen http://greatseth.com
