class TurtleGame::CLI
Handle the application command line parsing and the dispatch to various command objects
@api public
Constants
- Error
Error
raised by this runner
Public Instance Methods
turtle(width = nil)
click to toggle source
# File lib/turtle_game/cli.rb, line 24 def turtle(width = nil) if options[:help] invoke :help, ['turtle'] else require_relative 'commands/turtle' TurtleGame::Commands::Turtle.new(width, options).execute end end
version()
click to toggle source
# File lib/turtle_game/cli.rb, line 15 def version require_relative 'version' puts "v#{TurtleGame::VERSION}" end