From: RichardOnRails Date: 2009-07-13T07:50:06+09:00 Subject: Re: Another Shoes2-newbie question On Jul 12, 5:24 pm, RichardOnRails wrote: > Hi, > > I'm working my way through the examples in Shoes documentation > accessed through a link in the open Shoes2 console. > > I saw the example code: >     ary = ['abc', 'def', 'ghi'] >     ary.each do |item| >       puts item >     end > > I put that into Test.rb, > ran Shoe2 Test.rb > and got an empty console. > > I decided the code should have been enclosed a wrapper. as follows: > Shoes.app do >     ary = ['abc', 'def', 'ghi'] >     ary.each do |item| >       puts item >     end > end > > That didn't work, either.  What am I missing. > > Thanks in Advance, > Richard > > P.S.  I'm running Shoes2 over WinXP/SP3 Correction: "ran Shoe2 Test.rb" should read, of course: "ran Shoes Test.rb"