lib/video_converter/mp4info.rb
def clear_mp4info_output(path = nil)
      if path.nil?
        @mp4info_time = {}
        @mp4info_output = {}
        return nil
      end

      path = File.expand_path path
      @mp4info_time = {} if @mp4info_time.nil?
      @mp4info_output = {} if @mp4info_output.nil?
      @mp4info_time.delete path
      @mp4info_output.delete path
    end
# Clear any cached mp4info output for path. If path is
# nil, clear all cached output.
#
# @param path [String, nil] Path to an MP4 video file or nil
# @return [String, nil] Cached output after deletion or nil if path is nil
Clear any cached mp4info output for path. If path is
nil, clear all cached output.
Clear any cached mp4info output for path . If path is nil clear all cached output .
def clear_mp4info_output(path = nil)
      if path.nil?
        @mp4info_time = {}
        @mp4info_output = {}
        return nil
      end
      path = File.expand_path path
      @mp4info_time = {} if @mp4info_time.nil?
      @mp4info_output = {} if @mp4info_output.nil?
      @mp4info_time.delete path
      @mp4info_output.delete path
    end
def clear_mp4info_output ( path = nil ) if path . nil? @mp4info_time = { } @mp4info_output = { } return nil end path = File . expand_path path @mp4info_time = { } if @mp4info_time . nil? @mp4info_output = { } if @mp4info_output . nil? @mp4info_time . delete path @mp4info_output . delete path end
Clear any cached mp4info output for path.
Clear any cached mp4info output for path .
Cached output after deletion or nil if path is nil
Cached output after deletion or nil if path is nil
String, nil
path
Path to an MP4 video file or nil
Path to an MP4 video file or nil