lib/viddl/video/clip/cut.rb
# Token added to clip filename for cut args
# @param [Hash] options
# @option options [Numeric] :start Time in the source file where the clip starts
# @option options [Numeric] :duration Duration of the clip
# @return [String, nil]
Token added to clip filename for cut args
Token added to clip filename for cut args
def filename_token(options = {})
          if !options[:start].nil? || !options[:duration].nil?
            args = ""
            if !options[:start].nil?
              args += "s#{options[:start]}"
            end
            if !options[:duration].nil?
              args += "d#{options[:duration]}"
            end
            args
          end
        end
def filename_token ( options = { } ) if ! options [ :start ] . nil? || ! options [ :duration ] . nil? args = "" if ! options [ :start ] . nil? args += "s#{options[:start]}" end if ! options [ :duration ] . nil? args += "d#{options[:duration]}" end args end end
Token added to clip filename for cut args
Token added to clip filename for cut args
None
String, nil
options
:duration Duration of the clip
: duration Duration of the clip
None