Method: Bio::FlatFile.autodetect_file

Defined in:
lib/bio/io/flatfile.rb

.autodetect_file(filename) ⇒ Object

Detects database class (== file format) of given file. If fails to determine, returns nil.



440
441
442
# File 'lib/bio/io/flatfile.rb', line 440

def self.autodetect_file(filename)
  self.open_file(filename).dbclass
end