Class: Datafile::BeerDataset
- Defined in:
- lib/datafile/datasets/dataset.rb
Instance Attribute Summary
Attributes inherited from Dataset
Instance Method Summary collapse
- #file_worker ⇒ Object
-
#initialize(name_easy, opts = {}) ⇒ BeerDataset
constructor
A new instance of BeerDataset.
- #zip_worker ⇒ Object
Methods inherited from Dataset
Constructor Details
#initialize(name_easy, opts = {}) ⇒ BeerDataset
Returns a new instance of BeerDataset.
124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/datafile/datasets/dataset.rb', line 124 def initialize( name_easy, opts={} ) ## check if name include slash (e.g. /) ## - if not auto-add openbeer/ (default) if name_easy.index( '/' ).nil? name = "openbeer/#{name_easy}" else name = name_easy ## just pass through for now end super( name, opts ) end |
Instance Method Details
#file_worker ⇒ Object
138 |
# File 'lib/datafile/datasets/dataset.rb', line 138 def file_worker() BeerFileDataset.new( self ); end |
#zip_worker ⇒ Object
137 |
# File 'lib/datafile/datasets/dataset.rb', line 137 def zip_worker() BeerZipDataset.new( self ); end |