Hello world Ruby style

To get Ruby . Ruby is a development environment that is similar to other Object Oriented (OO) languages, but it is designed to be developed in quickly with a stable environment. Ruby can be used to create GUI’s to websites very quickly.

This first source code is the very basic Hello word!.

If you save this code

puts "Hello World";

as rubyhelloworld.rb

The file extension rb just stands for Ruby. To run the code from the command line, where you have saved the file above

ruby rubyhelloworld.rb

and the output will be

Hello World

Hope that helps people.

Leave a Reply

Your email address will not be published. Required fields are marked *