Ruby: Run Script

By Xah Lee. Date: .
ruby

p 3+2 == 5

Save the above in a file test.rb. Run it in terminal like this:

ruby test.rb

For emacs users, install this function to run Ruby file in emacs: ELisp: Execute/Compile Current File .