Suppose your filename is file.rbYou can run it as follows:ruby file.rb

Suppose your filename is file.rb
You can run it as follows:
ruby file.rb

Click Here!