Class: BioInterchange::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/biointerchange/model.rb

Overview

Instances of this class represent an object model that is populated by a Reader and serialized by a Writer. The model does not have to be read completely into memory (see GFF3/GVF implementation as an example).

Instance Method Summary collapse

Constructor Details

#initializeModel

Create a new instance of an object model. Your concrete object model make take some extra parameters for configuring/parametrizing the model’s behaviour.



10
11
# File 'lib/biointerchange/model.rb', line 10

def initialize
end

Instance Method Details

#pruneObject

For readers that support batch processing, pruning removes all data from the model that has been serialized already. This prevents memory issues when the input data is very large.



15
16
17
# File 'lib/biointerchange/model.rb', line 15

def prune
  raise BioInterchange::Exceptions::ImplementationModelError, 'Pruning is not implemented by this model'
end