Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
Using Google Chrome, I reached the Popup module part of the tutorial without error. I completed the first part where google.com was opened properly. However, I made a small typo on the second part where I'm supposed to create the to-do list.
I accidentally typed in the following (notice 'list.do') and when I added the second 'end', I got a syntax error:
Popup.make do
h1 "Things To Do"
list.do
p "Try out Ruby"
p "Ride a tiger"
p "(down River Euphrates)"
end
end
However, when I tried to re-enter the code above, I continued to get the syntax error when after I had changed 'list.do' to 'list do' as the tutorial suggested.
Using Google Chrome, I reached the Popup module part of the tutorial without error. I completed the first part where google.com was opened properly. However, I made a small typo on the second part where I'm supposed to create the to-do list.
I accidentally typed in the following (notice 'list.do') and when I added the second 'end', I got a syntax error: Popup.make do h1 "Things To Do" list.do p "Try out Ruby" p "Ride a tiger" p "(down River Euphrates)" end end
However, when I tried to re-enter the code above, I continued to get the syntax error when after I had changed 'list.do' to 'list do' as the tutorial suggested.