Class: Ms::Mascot::Mgf::Archive

Inherits:
ExternalArchive
  • Object
show all
Defined in:
lib/ms/mascot/mgf/archive.rb

Overview

Provides array-like access to an mgf archival file.

Instance Method Summary collapse

Instance Method Details

#reindex(&block) ⇒ Object

Reindexes self to each mgf entry in io



12
13
14
# File 'lib/ms/mascot/mgf/archive.rb', line 12

def reindex(&block)
  reindex_by_sep("BEGIN IONS", :entry_follows_sep => true, &block)
end

#str_to_entry(str) ⇒ Object

Returns an Mgf::Entry initialized using str



17
18
19
# File 'lib/ms/mascot/mgf/archive.rb', line 17

def str_to_entry(str)
  Entry.parse(str)
end