Blank console window after running Ruby code [message #996265] |
Tue, 01 January 2013 15:37 |
Hakim Benbekhti Messages: 2 Registered: January 2013 |
Junior Member |
|
|
I am all new in developing and I am trying to get things up and running.
I have developed the little test program called "Hello.rb":
class Hello
def Hello
puts "Hello Ruby World"
end
end
After running the program, the only thing I see in the "Console" is that "<Terminated> Hello.rb [Ruby Script] /usr/bin/ruby/" but the window is blank. I don't have any output in the Console: I do not see the output message "Hello Ruby World". Any idea why that is happening? (I use "Ruby 1.9.3″ and I use "Eclipse IDE for C/C++ Developers, Version: Juno Service Release 1″ where I have installed the "Dynamic Languages Toolkit Ruby Development Tools")
Funnily enough for the following program the output is correctly displayed in the Console:
class HelloYourName
print ('What is your name:')
name = gets()
puts ("Hello #{name}")
end
[Updated on: Tue, 01 January 2013 18:41] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06752 seconds