module BioTable::FormatFactory

Public Class Methods

create(format, evaluate) click to toggle source
# File lib/bio-table/formatter.rb, line 66
def self.create format, evaluate
  # @logger.info("Formatting to #{format}")
  return EvalFormatter.new(evaluate) if evaluate
  return CsvFormatter.new if format == :csv
  return TabFormatter.new
end