class Bio::PDB::ChemicalComponent::Record
Single field (normally single line) of a entry
Constants
- CONECT
CONECT field It would be wrong because the definition described in documents seems ambiguous.
- Default
default definition for unknown fields.
- Definition
Hash to store allowed definitions.
- End
END record class.
Because END is a reserved word of Ruby, it is separately added to the hash
- FORMUL
FORMUL field. It is the same as Bio::PDB::Record::FORMUL.
- HET
HET field. It is the same as Bio::PDB::Record::HET.
- HETNAM
HETNAM field. It is the same as Bio::PDB::Record::HETNAM.
- HETSYN
HETSYN field. It is very similar to Bio::PDB::Record::HETSYN.
- RESIDUE
RESIDUE field. It would be wrong because the definition described in documents seems ambiguous.
Public Class Methods
get_record_class(str)
click to toggle source
Look up the class in Definition hash
# File lib/bio/db/pdb/chemicalcomponent.rb, line 117 def self.get_record_class(str) t = fetch_record_name(str) return Definition[t] end
Private Class Methods
fetch_record_name(str)
click to toggle source
fetches record name
# File lib/bio/db/pdb/chemicalcomponent.rb, line 46 def self.fetch_record_name(str) str[0..6].strip end
Private Instance Methods
fetch_record_name(str)
click to toggle source
fetches record name
# File lib/bio/db/pdb/chemicalcomponent.rb, line 40 def fetch_record_name(str) str[0..6].strip end