[BioRuby-cvs] bioruby/lib/bio/shell/plugin codon.rb,1.9,1.10

Katayama Toshiaki k at pub.open-bio.org
Wed Dec 7 02:24:17 EST 2005


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

Modified Files:
	codon.rb 
Log Message:
* codontables is chagned to return hash


Index: codon.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/shell/plugin/codon.rb,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** codon.rb	7 Dec 2005 05:12:07 -0000	1.9
--- codon.rb	7 Dec 2005 07:24:15 -0000	1.10
***************
*** 196,202 ****
  
    def codontables
!     Bio::CodonTable::DEFINITIONS.sort.each do |i, definition|
        puts "#{i}\t#{definition}"
      end
    end
  
--- 196,204 ----
  
    def codontables
!     tables = Bio::CodonTable::DEFINITIONS
!     tables.sort.each do |i, definition|
        puts "#{i}\t#{definition}"
      end
+     return tables
    end
  



More information about the bioruby-cvs mailing list