I am using 0.r970 which is the latest non-git version. Did it come along after that?
----- Original Message ---- From: Ernest Prabhakar <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, September 30, 2008 10:49:43 PM Subject: Re: Where did the app object go? Are you using the latest version? The app object is pretty new... -enp On Sep 29, 2008, at 8:36 PM, recursor wrote: > I want to do some things with a class outside my app block, but I > cannot get it to work. I even went so far as > to copy the example given in http://help.shoooes.net/Rules.html > under the 'Block Redirection' section and try > to use it: > > class Messenger > def initialize(stack) > @stack = stack > end > def add(msg) > @stack.app do > @stack.append do > para msg > end > end > end > end > > ---snip-- (below is code that I added) > > Shoes.app do > @msg = Messenger.new(stack) > button 'go' do > @msg.add "dy-no-mite" > end > end > > The 'add' method should retrieve the app object from the stack > object, but when I do an alert @stack.app.inspect, I get: > > (Shoes) > > and the @stack.append does not work. Any thoughts? > > > >
