The required "Hello World" example. Create the file called hello.rb with the following content. Then go to the command line, to the same directory where you have the hello.rb saved and type ruby hello.rb.

examples/intro/hello.rb
#!/usr/bin/env ruby

puts "Hello world"

ruby hello.rb