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

#file?, #setup

Constructor Details

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

Returns a new instance of WorldDataset.



66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/datafile/datasets/dataset.rb', line 66

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



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

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

#zip_workerObject

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



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

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