Ruby Language Getting started with Ruby Language Hello World from IRB

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Alternatively, you can use the Interactive Ruby Shell (IRB) to immediately execute the Ruby statements you previously wrote in the Ruby file.

Start an IRB session by typing:

$ irb

Then enter the following command:

puts "Hello World"

This results in the following console output (including newline):

Hello World

If you don't want to start a new line, you can use print:

print "Hello World"


Got any Ruby Language Question?