Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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`
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #ruby #file #terminal
ADD COMMENT
Topic
Name
4+1 =