[BioRuby-cvs] bioruby/lib/bio/shell/plugin obda.rb,1.1,1.2
Katayama Toshiaki
k at pub.open-bio.org
Sat Nov 5 04:06:52 EST 2005
Update of /home/repository/bioruby/bioruby/lib/bio/shell/plugin
In directory pub.open-bio.org:/tmp/cvs-serv30510/lib/bio/shell/plugin
Modified Files:
obda.rb
Log Message:
* converted to RDoc
* changed to private method
Index: obda.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/obda.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** obda.rb 23 Sep 2005 13:57:08 -0000 1.1
--- obda.rb 5 Nov 2005 09:06:49 -0000 1.2
***************
*** 1,6 ****
#
! # bio/shell/plugin/obda.rb - plugin for OBDA
#
! # Copyright (C) 2005 KATAYAMA Toshiaki <k at bioruby.org>
#
# This library is free software; you can redistribute it and/or
--- 1,12 ----
#
! # = bio/shell/plugin/obda.rb - plugin for OBDA
#
! # Copyright:: Copyright (C) 2005
! # Toshiaki Katayama <k at bioruby.org>
! # Lisence:: LGPL
! #
! # $Id$
! #
! #--
#
# This library is free software; you can redistribute it and/or
***************
*** 18,22 ****
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! # $Id$
#
--- 24,28 ----
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
! #++
#
***************
*** 25,34 ****
module Bio::Shell
! def bioregistry
! @obda = Bio::Registry.new
end
! def getentry(dbname, entry_id)
! bioregistry unless @obda
db = @obda.get_database(dbname)
entry = db.get_by_id(entry_id)
--- 31,44 ----
module Bio::Shell
! 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)
More information about the bioruby-cvs
mailing list