Running a Ruby  program on Mac OS X
With Ruby 2.0.0

Right click exio.rb and save it.
"save link as" or "download linked file"

Open the terminal app in Applications/Utilities

type "/usr/bin/ruby ~/Downloads/exio.rb" (Assuming you saved it in Downloads)
~ stands for your user directory.


Links:
Hello World in Ruby on Mac OS X

last updated 4 Mar 2016