Sha256: 86ff6f5c52595c37e5d03cc7279cc3c025114972ab100f00f2fac28b0a5bf92d

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require "mercenary/version"
require "optparse"

module Mercenary
  autoload :Command, "mercenary/command"
  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

1 entries across 1 versions & 1 rubygems

Version Path
mercenary-0.0.1 lib/mercenary.rb