Ruby: Run Script

By Xah Lee. Date: . Last updated: .
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 .

Ruby, beginner info