lib/bio/io/flatfile/indexer.rb in bio-1.1.0 vs lib/bio/io/flatfile/indexer.rb in bio-1.2.0
- old
+ new
@@ -2,11 +2,11 @@
# = bio/io/flatfile/indexer.rb - OBDA flatfile indexer
#
# Copyright:: Copyright (C) 2002 GOTO Naohisa <ng@bioruby.org>
# License:: The Ruby License
#
-# $Id: indexer.rb,v 1.25 2007/04/05 23:35:41 trevor Exp $
+# $Id: indexer.rb,v 1.26 2007/12/11 15:13:32 ngoto Exp $
#
require 'bio/io/flatfile/index'
module Bio
@@ -712,10 +712,10 @@
end #def
end #module Indexer
##############################################################
def self.formatstring2class(format_string)
- case format
+ case format_string
when /genbank/i
dbclass = Bio::GenBank
when /genpept/i
dbclass = Bio::GenPept
when /embl/i