Sha256: 2bfc8b89c65014c8865dd58b104c93b36517df2043a48e0192155cd9f54c5125

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

module Quarry
  class Binary
    def initialize(path)
      @binary = Quarry::ImplBinary.new(path)
    end
    
    def read
      Quarry::DataSet::DataSet.new(@binary.read)
    end
    
    def write(data_set)
      @binary.write(data_set.data_set)
    end
    
    def read_model
      Quarry::Model.new(@binary.read_model)
    end
    
    def write_model(model)
      @binary.write_model(model.model)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thera-0.0.8 lib/quarry_rb/storage/binary.rb
thera-0.0.7 lib/quarry_rb/storage/binary.rb
thera-0.0.6 lib/quarry_rb/storage/binary.rb
thera-0.0.5 lib/quarry_rb/storage/binary.rb
thera-0.0.4 lib/quarry_rb/storage/binary.rb
thera-0.0.3 lib/quarry_rb/storage/binary.rb
thera-0.0.2 lib/quarry_rb/storage/binary.rb
thera-0.0.1 lib/quarry_rb/storage/binary.rb