Top Level Namespace

Defined Under Namespace

Modules: Datafile

Instance Method Summary collapse

Instance Method Details

#read_known_datasets(path) ⇒ Object

fix: move global method to ??



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

def read_known_datasets( path )
    ary = []
    lines = File.read( path )  ### fix: use File.read_utf8 ??
    lines.each_line do |line|
      ## skip blank and comments lines
      next   if /^\s*#/ =~ line || /^\s*$/ =~ line

      ary << line.strip
    end
    ary
end