Class: Mediakit::FFmpeg::Options::OutputFileOption

Inherits:
OptionPathPair show all
Defined in:
lib/mediakit/ffmpeg/options.rb

Instance Attribute Summary

Attributes inherited from OptionPathPair

#options, #path

Instance Method Summary collapse

Methods inherited from OptionPathPair

#to_s

Constructor Details

#initialize(options:, path:) ⇒ OutputFileOption

Returns a new instance of OutputFileOption.

Parameters:

  • :options (Hash)

    output options

  • :path (String)

    output file path



143
144
145
146
# File 'lib/mediakit/ffmpeg/options.rb', line 143

def initialize(options:, path:)
  ordered_hash = OrderedHash.new(options)
  super(options: ordered_hash, path: path)
end

Instance Method Details

#composeObject



148
149
150
# File 'lib/mediakit/ffmpeg/options.rb', line 148

def compose
  "#{options} #{path}"
end