Class: RVideo::Tools::AbstractTool

Inherits:
Object
  • Object
show all
Defined in:
lib/rvideo/tools/abstract_tool.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.assign(cmd, options = {}) ⇒ Object

AbstractTool is an interface to every transcoder tool class (e.g. ffmpeg, flvtool2). Called by the Transcoder class.



10
11
12
13
# File 'lib/rvideo/tools/abstract_tool.rb', line 10

def self.assign(cmd, options = {})
  tool_name = cmd.split(" ").first
  tool = "RVideo::Tools::#{tool_name.classify}".constantize.send(:new, cmd, options)
end