[BioRuby-cvs] bioruby/lib/bio/shell/plugin keggapi.rb, 1.6,
1.7 obda.rb, 1.7, 1.8
Katayama Toshiaki
k at pub.open-bio.org
Tue Nov 29 21:01:06 EST 2005
Update of /home/repository/bioruby/bioruby/lib/bio/shell/plugin
In directory pub.open-bio.org:/tmp/cvs-serv17734/shell/plugin
Modified Files:
keggapi.rb obda.rb
Log Message:
* initialize routine simplified
Index: obda.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/obda.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** obda.rb 28 Nov 2005 12:07:42 -0000 1.7
--- obda.rb 30 Nov 2005 02:01:04 -0000 1.8
***************
*** 32,39 ****
def obda
! unless @obda
! @obda = Bio::Registry.new
! end
! return @obda
end
--- 32,36 ----
def obda
! @obda ||= Bio::Registry.new
end
Index: keggapi.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/keggapi.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** keggapi.rb 28 Nov 2005 12:07:42 -0000 1.6
--- keggapi.rb 30 Nov 2005 02:01:04 -0000 1.7
***************
*** 42,49 ****
def keggapi
! unless @keggapi
! @keggapi = Bio::KEGG::API.new
! end
! return @keggapi
end
--- 42,46 ----
def keggapi
! @keggapi ||= Bio::KEGG::API.new
end
More information about the bioruby-cvs
mailing list