Module: FootballDb::Data
- Defined in:
- lib/footballdb-data.rb
Constant Summary collapse
- MAJOR =
todo: namespace inside version or something - why? why not??
2025
- MINOR =
1
- PATCH =
3
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary collapse
- .banner ⇒ Object
-
.data_dir ⇒ Object
rename to config_dir - why? why not?.
- .root ⇒ Object
- .version ⇒ Object
Class Method Details
.banner ⇒ Object
14 15 16 |
# File 'lib/footballdb-data.rb', line 14 def self. "footballdb-data/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})" end |
.data_dir ⇒ Object
rename to config_dir - why? why not?
22 23 24 |
# File 'lib/footballdb-data.rb', line 22 def self.data_dir ## rename to config_dir - why? why not? "#{root}/data" end |
.root ⇒ Object
18 19 20 |
# File 'lib/footballdb-data.rb', line 18 def self.root File.( File.dirname(File.dirname(__FILE__)) ) end |
.version ⇒ Object
10 11 12 |
# File 'lib/footballdb-data.rb', line 10 def self.version VERSION end |