Sha256: 1a78ee20417f4a3ff5406e6ba9994cb636b9099b4f24e86063160db285d050f5
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
module Main # # top level constants # Main::VERSION = '2.0.0' unless defined? Main::VERSION def self.version() Main::VERSION end Main::LIBDIR = File.join(File.dirname(File.expand_path(__FILE__)), self.name.downcase, '') unless defined? Main::LIBDIR def self.libdir() Main::LIBDIR end Main::EXIT_SUCCESS = 0 unless defined? Main::EXIT_SUCCESS Main::EXIT_FAILURE = 1 unless defined? Main::EXIT_FAILURE Main::EXIT_WARN = 42 unless defined? Main::EXIT_WARN # # built-in # require 'logger' require 'enumerator' require 'set' # # we try to use gems to pick up dependancies # =begin begin require 'rubygems' rescue LoadError 42 end begin require 'attributes' rescue LoadError require libdir + 'attributes' end begin require 'arrayfields' rescue LoadError require libdir + 'arrayfields' end =end require libdir + 'attributes' require libdir + 'arrayfields' # # main libs # require libdir + 'stdext' require libdir + 'softspoken' require libdir + 'util' require libdir + 'usage' require libdir + 'cast' require libdir + 'parameter' require libdir + 'getoptlong' require libdir + 'mode' require libdir + 'base' require libdir + 'factories' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
main-2.0.0 | lib/main.rb |