Sha256: dfbc75f690e152d7cc4ce47ab45948e47fd4dda6607d8d4c4050770d61ab37d5

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

class RakeMKV::CommandBuilder
  def initialize(command)
    @command = command
  end

  def build
    [command, minimum_length].join(' ').strip
  end

  private

  attr_reader :command

  def minimum_length
    if RakeMKV.config.minimum_title_length
      "--minlength=#{RakeMKV.config.minimum_title_length}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rakemkv-0.2.0 lib/rakemkv/command_builder.rb