Sha256: 8d95d4b82ed394f3a5196b7538133326208859e4f30d63412e23bf1729331f72
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
lib = File.expand_path('../', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "mercenary/version" require "optparse" require "logger" module Mercenary autoload :Command, "mercenary/command" autoload :Option, "mercenary/option" autoload :Presenter, "mercenary/presenter" autoload :Program, "mercenary/program" # Public: Instantiate a new program and execute. # # name - the name of your program # # Returns nothing. def self.program(name) program = Program.new(name) yield program program.go(ARGV) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mercenary-0.3.4 | lib/mercenary.rb |
mercenary-0.3.3 | lib/mercenary.rb |
mercenary-0.3.2 | lib/mercenary.rb |
mercenary-0.3.1 | lib/mercenary.rb |
mercenary-0.3.0 | lib/mercenary.rb |