It is really very easy to create a first ruby program. Follow the following instructions:
- Create a file called my_first_ruby_program.rb
touch my_first_ruby_program.rb
- Add following line to your file
puts "Rails World"
- In the terminal:
ruby my_first_ruby_program.rb
You will see ‘Rails World’ as the output. Congratulations you just created your first ruby program.