Hey Alexander!
I am trying to manipulate a shoes stack from an external class. More
specifically, passing data from the external class to be displayed in
a Shoes stack. So the example was pretty much exactly what I am trying
to accomplish.
Thanks for clearing it up for me!
Cheers!
Jae
On Jan 22, 2009, at 4:57 PM, Alexander Rakoczy wrote:
Hi Jae!
Methods named "app" will change the value of self! Check out:
http://help.shoooes.net/Rules.html
I'm not quite sure what you're doing here, but do you really need the
@stack.app block?
On Thu, Jan 22, 2009 at 15:38, Jae Hess <[email protected]> wrote:
Hey Shoers!
Giving the following code (taken from http://help.shoooes.net)
class Messenger
def initialize(stack)
@stack = stack
end
def add(msg)
@stack.app do
@stack.append do
para msg
end
end
end
end
If I pass in a Shoes stack instance, I am running into an issue
where after
calling @stack.app, @stack is nil when calling append.
Anyone else run into this issue?
Thanks in advance!
Cheers!
Jae
--
alexander rakoczy