Class: Ms::Mascot::Mgf::Archive
- Inherits:
-
ExternalArchive
- Object
- ExternalArchive
- Ms::Mascot::Mgf::Archive
- Defined in:
- lib/ms/mascot/mgf/archive.rb
Overview
Provides array-like access to an mgf archival file.
Class Method Summary collapse
-
.write(filename) ⇒ Object
yields an object for writing.
Instance Method Summary collapse
-
#reindex(&block) ⇒ Object
Reindexes self to each mgf entry in io.
-
#str_to_entry(str) ⇒ Object
Returns an Mgf::Entry initialized using str.
Class Method Details
.write(filename) ⇒ Object
yields an object for writing
12 13 14 15 16 |
# File 'lib/ms/mascot/mgf/archive.rb', line 12 def self.write(filename) mgf = self.new File.open(filename, 'w') do |out| end end |
Instance Method Details
#reindex(&block) ⇒ Object
Reindexes self to each mgf entry in io
19 20 21 |
# File 'lib/ms/mascot/mgf/archive.rb', line 19 def reindex(&block) reindex_by_sep("BEGIN IONS", :entry_follows_sep => true, &block) end |