Method: Bio::PDB::Model#to_s
- Defined in:
- lib/bio/db/pdb/model.rb
#to_s ⇒ Object
stringifies to chains
123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/bio/db/pdb/model.rb', line 123 def to_s string = "" if model_serial string = "MODEL #{model_serial}\n" #Should use proper formatting end @chains.each{ |chain| string << chain.to_s } #if solvent # string << @solvent.to_s #end if model_serial string << "ENDMDL\n" end return string end |