Hello everybody, first of all I just got Ruby v. 1.9.3p374 (latest I
could find), Notepad ++ and the book "Pragmatic Programming 1.9"
And im thinking that im of to a great start. But nooo, whem i make a
very simple prog.
Like:
puts 1+2
and save that as 3.rb then run the prog. It shows for less than a
millisecond which means, I know I did it right but cant see the result
because of the speed...
Arrrgh please help!
Btw cool forum and nice little puzzle to get an account can麓t wait to
get started and see where Ruby takes me.
1) there is an newer ruby patchlevel available
2) it looks that you are on windows, you need to call your script from
cmd
otherwise its does not wait for the window to close
If you installed ruby using the "ruby install for windows", then there's
a special CMD shortcut in the start menu which will correctly interpret
commands like "irb" and instructions to execute a ruby file.
if you want to double-click the file, but not close immediately after
running, then you can add "gets" to the end of your file.