Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

code-check/cli-template-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line application template for Ruby

Implement CLI application by editing main.rb.
You may add new files to keep your code clean, if it is allowed in your challenge.

How to get input parameters

In main.rb, there is a function called main, which gives command line arguments as argv.

def main(argv)
  # code to run
end

argv passed here is came from index.rb which passes ARGV to main function.

How to output result

Use the standard puts method to output results to stdout.

puts "Hello World"

Install External Libraries

If you want to use external libraries, do the following:

  • Write the library name in Gemfile

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •