Ruby Programming Language

Ruby Hello World!


First published on January 24, 2019

A traditional introduction to any programing language is to show how it would output the phrase Hello World!” In Ruby, a hello world program comprises merely one line:

puts ”Hello World!”

which would output to a terminal window:

Hello World!

The word “puts” tells Ruby to print whatever is contained to the right of the word to the terminal screen. Since “Hello World!” is a string (text characters), it must be incased in quotes.


Content is copyright the author. Layout is copyright Corsbook. See for further notices.