Module: SportDb::Langs

Defined in:
lib/sportdb/langs/version.rb

Overview

note: we use Langs with s (plular)

Constant Summary collapse

MAJOR =

todo: namespace inside version or something - why? why not??

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

Class Method Summary collapse

Class Method Details



16
17
18
# File 'lib/sportdb/langs/version.rb', line 16

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

.config_pathObject



25
26
27
# File 'lib/sportdb/langs/version.rb', line 25

def self.config_path
  "#{root}/config"
end

.rootObject



20
21
22
# File 'lib/sportdb/langs/version.rb', line 20

def self.root
  File.expand_path( File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) )
end

.versionObject



12
13
14
# File 'lib/sportdb/langs/version.rb', line 12

def self.version
  VERSION
end