Answers for "create ruby file in terminal"

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
0

load file in terminal ruby

launch irb

require './ruby_file.rb'
Posted by: Guest on June-25-2020

Browse Popular Code Answers by Language