I think I've seen this approached in some different ways; one way would to
setup a global var inside the app, and then you can use it outside of the
app:
Shoes.app do
$app = self
end
I've also been wondering lately if anybody has a good solution for
organizing class files and stuff when a Shoes app gets too big for one file?
-tieg
On Sat, Apr 12, 2008 at 2:12 PM, Phlip <[EMAIL PROTECTED]> wrote:
> self.visit @the_link.style[:url]
> >
>
> 2 kewt!
>
> Though, I think what you're looking for is some kind of
> > [EMAIL PROTECTED](:click)`, is that right?
> >
>
> Mmmaybe. Consider your Book < Shoes. How to write a main() below it that
> manipulates the Shoes app as an object? You keep assuming all code in the
> app will appear inside the .app{}.
>
> app.visit(url) would be great!
>