Method: Bio::PDB#record

Defined in:
lib/bio/db/pdb/pdb.rb

#record(name = nil) ⇒ Object

Gets all records whose record type is name. Returns an array of Bio::PDB::Record::* objects.

if name is nil, returns hash storing all record data.

Example: p pdb.record(‘HETATM’) p pdb.record



1695
1696
1697
# File 'lib/bio/db/pdb/pdb.rb', line 1695

def record(name = nil)
  name ? (@hash[name] || []) : @hash
end