Sha256: 0778f14b696dd87a3d1546bfaac1931218998ea51e8b265e7bb2a921b694cba2

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

# frozen_string_literal: true

module MkvToolNix
  module Types
    module Merge
      class SegmentInfo

        attr_reader :file, :uids

        def for_file(file)
          @file = file
          self
        end

        def for_uids(uids)
          @uids = uids
          self
        end

        def add_to_cmd(cmd)
          cmd << '--segmentinfo' << @file unless @file.nil?
          cmd << '--segment-uid' << @uids.join(',') unless @uids.nil?
          nil
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mkvtoolnix-1.0.0 lib/mkvtoolnix/types/merge/segment_info.rb