Sha256: 98a6d07869c34549912b7d09c9aef70bef1ab5def27d7dfb45f7fe046a2fe746
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
require File.expand_path("../mercenary/version", __FILE__) require "optparse" require "logger" module Mercenary autoload :Command, File.expand_path("../mercenary/command", __FILE__) autoload :Option, File.expand_path("../mercenary/option", __FILE__) autoload :Presenter, File.expand_path("../mercenary/presenter", __FILE__) autoload :Program, File.expand_path("../mercenary/program", __FILE__) # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mercenary-0.3.6 | lib/mercenary.rb |
mercenary-0.3.5 | lib/mercenary.rb |