Method: Bio::PDB::ChemicalComponent#record

Defined in:
lib/bio/db/pdb/chemicalcomponent.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(‘CONECT’) p pdb.record



218
219
220
# File 'lib/bio/db/pdb/chemicalcomponent.rb', line 218

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