Method: AssLauncher::Support::Shell::AssOutFile#read

Defined in:
lib/ass_launcher/support/shell.rb

#readObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



407
408
409
410
411
412
413
414
415
416
417
# File 'lib/ass_launcher/support/shell.rb', line 407

def read
  begin
    @file.open
    s = @file.read
    s.encode! Encoding::UTF_8, encoding unless linux?
  ensure
    @file.close
    try_unlink
  end
  s.to_s
end