class Object

Constants

BeerDataset
FootballDataset
WorldDataset

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

add "global" shortcuts for now

Public Instance Methods

read_known_datasets( path ) click to toggle source

fix: move global method to ??

# 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