[BioRuby-cvs] bioruby/lib/bio/io keggapi.rb,1.14,1.15
Katayama Toshiaki
k at dev.open-bio.org
Fri Jul 20 21:56:47 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv1348
Modified Files:
keggapi.rb
Log Message:
* Fixed that To define singleton method to Fixnum is not allowed.
- can't define singleton method "filter" for Fixnum (TypeError)
Index: keggapi.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/keggapi.rb,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** keggapi.rb 5 Apr 2007 23:35:41 -0000 1.14
--- keggapi.rb 20 Jul 2007 21:56:45 -0000 1.15
***************
*** 332,335 ****
--- 332,336 ----
if results.is_a?(Array)
results.each do |result|
+ next if result.is_a?(Fixnum)
def result.filter(fields)
fields.collect { |field| self.send(field) }
More information about the bioruby-cvs
mailing list