Class: Datafile::WorldDataset

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

Instance Attribute Summary

Attributes inherited from Dataset

#name, #opts

Instance Method Summary collapse

Methods inherited from Dataset

#format, #setup

Constructor Details

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

Returns a new instance of WorldDataset.



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

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