Module: Sats
- Defined in:
- lib/satsnames.rb,
lib/satsnames/version.rb
Defined Under Namespace
Classes: Directory, Record
Constant Summary
collapse
- MAJOR =
sync version w/ sport.db n friends - why? why not?
0
- MINOR =
todo: namespace inside version or something - why? why not??
0
- PATCH =
1
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary
collapse
Class Method Details
.[](q) ⇒ Object
92
93
94
|
# File 'lib/satsnames.rb', line 92
def self.[]( q )
dir[ q ]
end
|
.banner ⇒ Object
14
15
16
|
# File 'lib/satsnames/version.rb', line 14
def self.banner
"satsnames/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in >#{root}<"
end
|
.dir ⇒ Object
Also known as:
directory
84
85
86
87
|
# File 'lib/satsnames.rb', line 84
def self.dir
@dir ||= Directory.read( "#{root}/config/relays.2023.csv"
)
end
|
.root ⇒ Object
18
19
20
|
# File 'lib/satsnames/version.rb', line 18
def self.root
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end
|
.version ⇒ Object
10
11
12
|
# File 'lib/satsnames/version.rb', line 10
def self.version
VERSION
end
|