Module: Mercenary
- Defined in:
- lib/mercenary.rb,
lib/mercenary/option.rb,
lib/mercenary/command.rb,
lib/mercenary/program.rb,
lib/mercenary/version.rb,
lib/mercenary/presenter.rb
Defined Under Namespace
Classes: Command, Option, Presenter, Program
Constant Summary collapse
- VERSION =
"0.3.5"
Class Method Summary collapse
-
.program(name) {|program| ... } ⇒ Object
Public: Instantiate a new program and execute.
Class Method Details
.program(name) {|program| ... } ⇒ Object
Public: Instantiate a new program and execute.
name - the name of your program
Returns nothing.
16 17 18 19 20 |
# File 'lib/mercenary.rb', line 16 def self.program(name) program = Program.new(name) yield program program.go(ARGV) end |