Method: Bio::FlatFile.open_file
- Defined in:
- lib/bio/io/flatfile.rb
.open_file(filename, *arg) ⇒ Object
Same as FlatFile.auto(filename, *arg), except that it only accept filename and doesn’t accept IO object. File format is automatically determined.
It can accept a block. If a block is given, it returns the block’s return value. Otherwise, it returns a new FlatFile object.
144 145 146 |
# File 'lib/bio/io/flatfile.rb', line 144 def self.open_file(filename, *arg) _open_file(nil, filename, *arg) end |