Module: BioTable::FormatFactory

Defined in:
lib/bio-table/formatter.rb

Class Method Summary collapse

Class Method Details

.create(format, evaluate) ⇒ Object



66
67
68
69
70
71
# 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