A repository is a configured collection of fields and a set of entries that knows how to reparse a source and reify the values.

Attributes
Read

The source associated with this repository. This will be either a SourceFilepath (the most common use case) or a SourceString.

Read

The fields that have been configured on this repository.

Read

The entries that have been saved on this repository.

Class Methods

Initialize a new repository with the given source.

Instance Methods

Configure the character columns field for this repository and return self.

Configure the character offsets field for this repository and return self.

Configure the code unit columns field for this repository for a specific encoding and return self.

Configure the code unit offsets field for this repository for a specific encoding and return self.

Create a code units cache for the given encoding from the source.

Configure the columns field for this repository and return self.

Configure both the leading and trailing comment fields for this repository and return self.

Append the given field to the repository and return the repository so that these calls can be chained.

Configure the filepath field for this repository and return self.

Configure the leading comments field for this repository and return self.

Configure the lines field for this repository and return self.

Configure the offsets field for this repository and return self.

Configure the trailing comments field for this repository and return self.