Class: Magma::Renderer

Inherits:
Object
  • Object
show all
Includes:
Common, Utils
Defined in:
lib/magma/renderer.rb

Constant Summary collapse

SUPPORTED_FORMATS =
%w[hls mp4].freeze
MELT =
'melt'.freeze

Instance Method Summary collapse

Methods included from Utils

#pipe, #read_file_or_stdin, #run, #symbolize_keys, #uuid?, #which

Methods included from Common

#handle_output!

Constructor Details

#initialize(outfile, options) ⇒ Renderer

Returns a new instance of Renderer.



12
13
14
15
# File 'lib/magma/renderer.rb', line 12

def initialize(outfile, options)
  @outfile = outfile
  @options = options
end

Instance Method Details

#callObject



17
18
19
# File 'lib/magma/renderer.rb', line 17

def call
  render!
end