module Phobius::Parser
Public Class Methods
new(parser_type=:short)
click to toggle source
# File lib/transmembrane/phobius.rb, line 58 def self.new(parser_type=:short) klass = case parser_type when :short Phobius::ParserShort else raise ArgumentError, "don't recognize parser type: #{parser_type}" end klass.new end
Public Instance Methods
file_to_index(file, index={})
click to toggle source
# File lib/transmembrane/phobius.rb, line 69 def file_to_index(file, index={}) File.open(file) {|fh| to_index(fh, index) } end