Module: Datafile

Defined in:
lib/datafile.rb,
lib/datafile/builder.rb,
lib/datafile/dataset.rb,
lib/datafile/version.rb,
lib/datafile/datafile.rb,
lib/datafile/workers/zip/worker.rb,
lib/datafile/workers/file/worker.rb,
lib/datafile/workers/zip/dataset.rb,
lib/datafile/workers/file/dataset.rb,
lib/datafile/workers/file/registry.rb

Defined Under Namespace

Classes: BeerDataset, Builder, Datafile, Dataset, DatasetNotFoundError, Error, FileDataset, FileDatasetRegistry, FileWorker, FootballDataset, WorldDataset, ZipDataset, ZipWorker

Constant Summary collapse

MAJOR =

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

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

Class Method Summary collapse

Class Method Details



13
14
15
# File 'lib/datafile/version.rb', line 13

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

.data_pathObject



21
22
23
# File 'lib/datafile/version.rb', line 21

def self.data_path
    "#{root}/data"
end

.rootObject



17
18
19
# File 'lib/datafile/version.rb', line 17

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

.versionObject



9
10
11
# File 'lib/datafile/version.rb', line 9

def self.version
  VERSION
end