In this example, you will learn about how to create and print a hello world program in ruby language.
- Create a new file called
- Add the following code.
puts "Hello World!"
- Run the above code by typing
ruby hello_world.rbin your terminal and you will see