Ruby: Run Script
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 .
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 .