Class: Mediakit::FFmpeg::Options::GlobalOption

Inherits:
OrderedHash
  • Object
show all
Defined in:
lib/mediakit/ffmpeg/options.rb

Instance Method Summary collapse

Methods inherited from OrderedHash

#[]=, #compose, #to_s

Constructor Details

#initialize(options = {}) ⇒ GlobalOption

Returns a new instance of GlobalOption.



102
103
104
105
106
107
# File 'lib/mediakit/ffmpeg/options.rb', line 102

def initialize(options = {})
  if options.values.any? { |x| x.kind_of?(Hash) }
    raise(ArgumentError, 'you can\'t give nested Hash in GlobalOption')
  end
  super
end