Method: AssLauncher::Support::Shell::AssOutFile#initialize

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

#initialize(encoding = nil) ⇒ AssOutFile

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.

Returns a new instance of AssOutFile.



390
391
392
393
394
395
# File 'lib/ass_launcher/support/shell.rb', line 390

def initialize(encoding = nil)
  @file = Tempfile.new('ass_out')
  @file.close
  @path = platform.path(@file.path)
  @encoding = encoding || detect_ass_encoding
end