Module: FootballDb::Clubs

Defined in:
lib/footballdb/clubs/version.rb

Constant Summary collapse

MAJOR =

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

2020
MINOR =
5
PATCH =
10
VERSION =
[MAJOR,MINOR,PATCH].join('.')

Class Method Summary collapse

Class Method Details


16
17
18
# File 'lib/footballdb/clubs/version.rb', line 16

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

.data_dirObject

rename to config_dir - why? why not?


24
25
26
# File 'lib/footballdb/clubs/version.rb', line 24

def self.data_dir  ## rename to config_dir - why? why not?
  "#{root}/config"
end

.rootObject


20
21
22
# File 'lib/footballdb/clubs/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/footballdb/clubs/version.rb', line 12

def self.version
  VERSION
end