Top Level Namespace

Defined Under Namespace

Modules: Datafile

Constant Summary collapse

WorldDataset =

note: add “known” dataset classes to global namespace - why? why not?

add "global" shortcuts for now
Datafile::WorldDataset
FootballDataset =
Datafile::FootballDataset
BeerDataset =
Datafile::BeerDataset

Instance Method Summary collapse

Instance Method Details

#fetcherObject

add (HTTP/S) download support (of blobs/binaries/zips)



4
# File 'lib/datafile.rb', line 4

require 'fetcher'

#read_known_datasets(path) ⇒ Object

fix: move global method to ??



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/datafile/dataset.rb', line 7

def read_known_datasets( path )
    ary = []
    lines = File.open( path, 'r:utf-8' ).read
    lines.each_line do |line|
      ## skip blank and comments lines
      next   if /^\s*#/ =~ line || /^\s*$/ =~ line

      ary << line.strip
    end
    ary
end