Ruby: Run Script
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: Emacs Lisp: Execute/Compile Current File .
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: Emacs Lisp: Execute/Compile Current File .