Sha256: ef04613879279e187aa5f0d296b3421985286f049ee95a74e552edac93c87364

Contents?: true

Size: 362 Bytes

Versions: 10

Compression:

Stored size: 362 Bytes

Contents

module FFMpegCommand
  extend self
  
  @commands = []
  
  def <<(cmd)
    @commands << cmd
  end
  
  def add_at(cmd, pos)
    @commands.insert(pos, cmd)
  end
  
  def clear
    @commands.clear
  end
  
  def command(prefix="")
    returning prefix.to_s do |prefix|
      @commands.each do |command|
        prefix << " #{command}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
polly-ffmpeg-0.1.1 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.2 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.3 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.5 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.6 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.7 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.8 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.1.9 lib/ffmpeg/ffmpeg_command.rb
polly-ffmpeg-0.2.1 lib/ffmpeg/ffmpeg_command.rb
ffmpeg-0.2.5 lib/ffmpeg/ffmpeg_command.rb