[BioRuby-cvs] bioruby/lib/bio/sequence common.rb,1.4,1.5

Mitsuteru C. Nakao nakao at dev.open-bio.org
Mon Dec 3 06:19:14 UTC 2007


Update of /home/repository/bioruby/bioruby/lib/bio/sequence
In directory dev.open-bio.org:/tmp/cvs-serv11507/lib/bio/sequence

Modified Files:
	common.rb 
Log Message:
* Fixed Bio::Sequence::NA#concat bug reported by Dr. M. Matsuzaki. 
* Added tests for concat and << for Bio::Sequence::NA and AA.



Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/sequence/common.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** common.rb	5 Apr 2007 23:35:41 -0000	1.4
--- common.rb	3 Dec 2007 06:19:12 -0000	1.5
***************
*** 92,99 ****
    # ---
    # *Returns*:: current Bio::Sequence::NA/AA object (modified)
!   def <<(*arg)
      super(self.class.new(*arg))
    end
!   alias concat <<
  
    # Create a new sequence by adding to an existing sequence.
--- 92,102 ----
    # ---
    # *Returns*:: current Bio::Sequence::NA/AA object (modified)
!   def concat(*arg)
      super(self.class.new(*arg))
    end
! 
!   def <<(*arg)
!     concat(*arg)
!   end
  
    # Create a new sequence by adding to an existing sequence.




More information about the bioruby-cvs mailing list