[BioRuby-cvs] bioruby/lib/bio/shell/plugin obda.rb,1.3,1.4

Katayama Toshiaki k at pub.open-bio.org
Thu Nov 24 14:32:51 EST 2005


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

Modified Files:
	obda.rb 
Log Message:
* setup_obda is renamed to obda and returns @obda


Index: obda.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/obda.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** obda.rb	14 Nov 2005 02:01:54 -0000	1.3
--- obda.rb	24 Nov 2005 19:32:49 -0000	1.4
***************
*** 33,45 ****
    private
  
!   def setup_obda
      unless @obda
        @obda = Bio::Registry.new
      end
    end
  
    def obda_get_entry(dbname, entry_id)
!     setup_obda
!     db = @obda.get_database(dbname)
      entry = db.get_by_id(entry_id)
      if block_given?
--- 33,45 ----
    private
  
!   def obda
      unless @obda
        @obda = Bio::Registry.new
      end
+     return @obda
    end
  
    def obda_get_entry(dbname, entry_id)
!     db = obda.get_database(dbname)
      entry = db.get_by_id(entry_id)
      if block_given?



More information about the bioruby-cvs mailing list