Skip to content

Commit

Permalink
Restored Bio::Fasta.parser for keeping compatibility, and added forgo…
Browse files Browse the repository at this point in the history
…tten require.
  • Loading branch information
ngoto committed May 6, 2009
1 parent 3d3edc4 commit 97b9284
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/bio/appl/fasta.rb
Expand Up @@ -66,6 +66,15 @@ def format=(num)
end
attr_reader :format

# OBSOLETE. Does nothing and shows warning messages.
#
# Historically, selecting parser to use ('format6' or 'format10' were
# expected, but only 'format10' was available as a working parser).
#
def self.parser(parser)
warn 'Bio::Fasta.parser is obsoleted and will soon be removed.'
end

# Returns a FASTA factory object (Bio::Fasta) to run FASTA search on
# local computer.
def self.local(program, db, option = '')
Expand Down
1 change: 1 addition & 0 deletions lib/bio/appl/fasta/format10.rb
Expand Up @@ -8,6 +8,7 @@
#

require 'bio/appl/fasta'
require 'bio/io/flatfile/splitter'

module Bio
class Fasta
Expand Down

0 comments on commit 97b9284

Please sign in to comment.