Module: SchemaDoc

Defined in:
lib/schemadoc.rb,
lib/schemadoc/worker.rb,
lib/schemadoc/version.rb,
lib/schemadoc/cli/opts.rb,
lib/schemadoc/cli/runner.rb

Defined Under Namespace

Classes: Opts, Runner, Worker

Constant Summary collapse

MAJOR =
1
MINOR =
1
PATCH =
0
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details



14
15
16
# File 'lib/schemadoc/version.rb', line 14

def self.banner
  "schemadoc/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end

.mainObject



22
23
24
25
26
27
# File 'lib/schemadoc.rb', line 22

def self.main
  ## NB: only load (require) cli code if called
  require 'schemadoc/cli/runner'

  Runner.new.run( ARGV )
end

.rootObject



18
19
20
# File 'lib/schemadoc/version.rb', line 18

def self.root
  "#{File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )}"
end

.versionObject



10
11
12
# File 'lib/schemadoc/version.rb', line 10

def self.version
  VERSION
end