Method: Bio::PDB#sheet
- Defined in:
- lib/bio/db/pdb/pdb.rb
#sheet(sheetID = nil) ⇒ Object
Gets SHEET records. If no arguments are given, it returns all SHEET records as an array of arrays of Bio::PDB::Record::SHEET
instances. If sheetID is given, it returns an array of Bio::PDB::Record::SHEET
instances.
1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 |
# File 'lib/bio/db/pdb/pdb.rb', line 1776 def sheet(sheetID = nil) unless defined?(@sheet) @sheet = make_grouping(self.record('SHEET'), :sheetID) end if sheetID then @sheet.find_all { |f| f.first.sheetID == sheetID } else @sheet end end |