Class: Datafile::WorldDataset

Inherits:
Dataset
  • Object
show all
Defined in:
lib/datafile/datasets/dataset.rb

Instance Attribute Summary

Attributes inherited from Dataset

#name, #opts

Instance Method Summary collapse

Methods inherited from Dataset

#setup

Constructor Details

#initialize(name_easy, opts = {}) ⇒ WorldDataset

Returns a new instance of WorldDataset.



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/datafile/datasets/dataset.rb', line 41

def initialize( name_easy, opts={} )

  ## check if name include slash (e.g. /)
  ##  - if not auto-add openmundi/ (default)
  if name_easy.index( '/' ).nil?
    name = "openmundi/#{name_easy}"
  else
    name = name_easy   ## just pass through for now
  end

  super( name, opts )  ## todo/check: just juse super (e.g. pass along all params - why? why not?)
end

Instance Method Details

#file_workerObject



55
# File 'lib/datafile/datasets/dataset.rb', line 55

def file_worker()  WorldFileDataset.new( self ); end

#zip_workerObject

check: change (rename) just use zip or use worker_zip?? - why, why not?



54
# File 'lib/datafile/datasets/dataset.rb', line 54

def zip_worker()   WorldZipDataset.new( self );  end