On that note, I do wonder if Shoes is using a sandbox. Do we have to worry about global variables and class names messing with those in other apps running at the same time, or are we safe there? If not, is there a plan to change that?
A hack is to do $app = self inside the def index, then you can do
$app.visit and stuff like that. That's how I usually mess with shoe's
innards in IRB. Another way to go would be Shoes.APPS.select { |i|
i.instance_of?(Thang) }.first which should get the first one opened...
maybe .last would even work if opened multiple times, if that's even
possible.
- Treating Shoes like an object Phlip
- Re: Treating Shoes like an object Bluebie, Jenna
