Class: Bio::FlatFile::Splitter::Template
- Defined in:
- lib/bio/io/flatfile.rb
Overview
This is a template of splitter.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
the last entry read from the stream.
-
#entry_ended_pos ⇒ Object
readonly
(end position of the entry) + 1.
-
#entry_pos_flag ⇒ Object
a flag to write down entry start and end positions.
-
#entry_start_pos ⇒ Object
readonly
start position of the entry.
Instance Method Summary collapse
-
#get_entry ⇒ Object
Gets entry as a string.
-
#initialize(klass, bstream) ⇒ Template
constructor
Creates a new splitter.
-
#skip_leader ⇒ Object
skips leader of the entry.
Constructor Details
#initialize(klass, bstream) ⇒ Template
Creates a new splitter.
246 247 248 249 |
# File 'lib/bio/io/flatfile.rb', line 246 def initialize(klass, bstream) @stream = bstream raise NotImplementedError end |
Instance Attribute Details
#entry ⇒ Object (readonly)
the last entry read from the stream
262 263 264 |
# File 'lib/bio/io/flatfile.rb', line 262 def entry @entry end |
#entry_ended_pos ⇒ Object (readonly)
(end position of the entry) + 1
271 272 273 |
# File 'lib/bio/io/flatfile.rb', line 271 def entry_ended_pos @entry_ended_pos end |
#entry_pos_flag ⇒ Object
a flag to write down entry start and end positions
265 266 267 |
# File 'lib/bio/io/flatfile.rb', line 265 def entry_pos_flag @entry_pos_flag end |
#entry_start_pos ⇒ Object (readonly)
start position of the entry
268 269 270 |
# File 'lib/bio/io/flatfile.rb', line 268 def entry_start_pos @entry_start_pos end |
Instance Method Details
#get_entry ⇒ Object
Gets entry as a string
257 258 259 |
# File 'lib/bio/io/flatfile.rb', line 257 def get_entry raise NotImplementedError end |
#skip_leader ⇒ Object
skips leader of the entry.
252 253 254 |
# File 'lib/bio/io/flatfile.rb', line 252 def skip_leader raise NotImplementedError end |