Monday, May 24, 2010

How to install ruby on Ubuntu 10.04

 
 command: 
 sudo apt-get install ruby-full
 
open up a shell and type irb and hit enter 
then u will geta prompt like this
irb(main):001:0>
 
first program in ruby
 
Hello world in ruby: 
 irb(main):001:0> "Hello World"
=> "Hello World"

No comments:

Post a Comment