Answers for "how run ruby file"

0

how to run a ruby file in terminal

Just call: ruby your_program.rb

# or

start your program with #!/usr/bin/env ruby,
make your file executable by running 
	`chmod +x your_program.rb`
# and do 
  `./your_program.rb some_param`
Posted by: Guest on September-10-2021

Browse Popular Code Answers by Language