Module: FFMpegCommand
Instance Method Summary collapse
Instance Method Details
#<<(cmd) ⇒ Object
6 7 8 |
# File 'lib/ffmpeg/ffmpeg_command.rb', line 6 def <<(cmd) @commands << cmd end |
#add_at(cmd, pos) ⇒ Object
10 11 12 |
# File 'lib/ffmpeg/ffmpeg_command.rb', line 10 def add_at(cmd, pos) @commands.insert(pos, cmd) end |
#clear ⇒ Object
14 15 16 |
# File 'lib/ffmpeg/ffmpeg_command.rb', line 14 def clear @commands.clear end |
#command(prefix = "") ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/ffmpeg/ffmpeg_command.rb', line 18 def command(prefix="") returning prefix.to_s do |prefix| @commands.each do |command| prefix << " #{command}" end end end |