Module: Bio::FileExistenceChecker

Included in:
Bam::File, Sam::File
Defined in:
lib/bio-sambamba/exception.rb

Instance Method Summary collapse

Instance Method Details

#check_file_existence(filename) ⇒ Object



12
13
14
# File 'lib/bio-sambamba/exception.rb', line 12

def check_file_existence filename
  raise "file #{filename} does not exist" unless File.exists? filename
end