Another Shoes2-newbie question

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

On Jul 12, 5:24 pm, RichardOnRails
[email protected] wrote:

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”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs