[BioRuby-cvs] bioruby/lib/bio/db/pdb pdb.rb,1.17,1.18

Naohisa Goto ngoto at dev.open-bio.org
Tue Mar 27 16:37:35 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/db/pdb
In directory dev.open-bio.org:/tmp/cvs-serv3803

Modified Files:
	pdb.rb 
Log Message:
fixed a bug: Bio::PDB::Record::***.new.inspect fails.


Index: pdb.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/pdb/pdb.rb,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** pdb.rb	27 Mar 2007 16:29:32 -0000	1.17
--- pdb.rb	27 Mar 2007 16:37:33 -0000	1.18
***************
*** 355,359 ****
        #
        def do_parse
!         return self if @parsed
          str = @str
          each_symbol do |key, klass, ranges|
--- 355,359 ----
        #
        def do_parse
!         return self if @parsed or !@str
          str = @str
          each_symbol do |key, klass, ranges|
***************
*** 991,995 ****
  
          def do_parse
!           return self if @parsed
            self.serial     = @str[6..10].to_i
            self.name       = @str[12..15].strip
--- 991,995 ----
  
          def do_parse
!           return self if @parsed or !@str
            self.serial     = @str[6..10].to_i
            self.name       = @str[12..15].strip




More information about the bioruby-cvs mailing list