Class: Quarry::ARFF

Inherits:
Object
  • Object
show all
Defined in:
lib/quarry_rb/storage/arff.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ARFF

Returns a new instance of ARFF.



3
4
5
# File 'lib/quarry_rb/storage/arff.rb', line 3

def initialize(path)
  @arff = Quarry::ImplARFF.new(path)
end

Instance Method Details

#readObject



7
8
9
# File 'lib/quarry_rb/storage/arff.rb', line 7

def read
  Quarry::DataSet::DataSet.new(@arff.read)
end