[BioRuby-cvs] bioruby/lib/bio db.rb,0.28,0.29

Mitsuteru C. Nakao nakao at pub.open-bio.org
Sun Oct 23 03:16:31 EDT 2005


Update of /home/repository/bioruby/bioruby/lib/bio
In directory pub.open-bio.org:/tmp/cvs-serv8653/lib/bio

Modified Files:
	db.rb 
Log Message:
* added 'autolaod :Common, ' for Bio::NCBIDB.
* added 'autolaod :Common, ' for Bio::EMBLDB.


Index: db.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db.rb,v
retrieving revision 0.28
retrieving revision 0.29
diff -C2 -d -r0.28 -r0.29
*** db.rb	8 Sep 2005 01:22:08 -0000	0.28
--- db.rb	23 Oct 2005 07:16:29 -0000	0.29
***************
*** 1,7 ****
  #
! # bio/db.rb - DataBase parser general API
  #
  #   Copyright (C) 2001, 2002 KATAYAMA Toshiaki <k at bioruby.org>
! #
  #  This library is free software; you can redistribute it and/or
  #  modify it under the terms of the GNU Lesser General Public
--- 1,7 ----
  #
! #= bio/db.rb - DataBase parser general API
  #
  #   Copyright (C) 2001, 2002 KATAYAMA Toshiaki <k at bioruby.org>
! #--
  #  This library is free software; you can redistribute it and/or
  #  modify it under the terms of the GNU Lesser General Public
***************
*** 17,21 ****
  #  License along with this library; if not, write to the Free Software
  #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
! #
  #  $Id$
  #
--- 17,21 ----
  #  License along with this library; if not, write to the Free Software
  #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
! #--
  #  $Id$
  #
***************
*** 26,30 ****
  
  module Bio
! 
    class DB
  
--- 26,31 ----
  
  module Bio
!   
!   # Bio::DB API
    class DB
  
***************
*** 86,91 ****
    end
  
! 
    class NCBIDB < DB
  
      def initialize(entry, tagsize)
--- 87,93 ----
    end
  
!   # Bio::NCBIDB
    class NCBIDB < DB
+     autoload :Common, 'bio/db/genbank/common'
  
      def initialize(entry, tagsize)
***************
*** 122,132 ****
    end
  
! 
    class KEGGDB < NCBIDB
    end
  
! 
    class EMBLDB < DB
!     
      def initialize(entry, tagsize)
        @tagsize = tagsize
--- 124,135 ----
    end
  
!   # Bio::KEGG
    class KEGGDB < NCBIDB
    end
  
!   # Bio::EMBLDB
    class EMBLDB < DB
!     autoload :Common, 'bio/db/embl/common'
! 
      def initialize(entry, tagsize)
        @tagsize = tagsize
***************
*** 134,138 ****
        @data = {}			# Hash of the parsed entry
      end
- 
  
      private
--- 137,140 ----



More information about the bioruby-cvs mailing list