class BioInterchange::Model

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).

Public Class Methods

new() click to toggle source

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

# File lib/biointerchange/model.rb, line 10
def initialize
end

Public Instance Methods

prune() click to toggle source

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.

# File lib/biointerchange/model.rb, line 15
def prune
  raise BioInterchange::Exceptions::ImplementationModelError, 'Pruning is not implemented by this model'
end