lib/zipr/archive.rb
def view_file(relative_path)
      raise 'Reading files inside a 7zip archive is not yet supported!' if @options[:archive_type] == :seven_zip
      EasyIO.logger.debug "Reading #{@path} // #{relative_path}..."
      ::Zip::File.open(@path).read(relative_path)
    end
#
# Description:
#   Read a file inside a zip file without extracting it to the filesystem.
#   Currently only supports :zip files
# Returns:
#   A string containing the file contents.
# Parameters:
#   relative_path: The path inside the archive for the file to view.
Read a file inside a zip file without extracting it to the filesystem.
Currently only supports :zip files
Returns:
A string containing the file contents.
Parameters:
relative_path: The path inside the archive for the file to view.
Read a file inside a zip file without extracting it to the filesystem . Currently only supports : zip files Returns : A string containing the file contents . Parameters : relative_path : The path inside the archive for the file to view .
def view_file(relative_path)
      raise 'Reading files inside a 7zip archive is not yet supported!' if @options[:archive_type] == :seven_zip
      EasyIO.logger.debug "Reading #{@path} // #{relative_path}..."
      ::Zip::File.open(@path).read(relative_path)
    end
def view_file ( relative_path ) raise 'Reading files inside a 7zip archive is not yet supported!' if @options [ :archive_type ] == :seven_zip EasyIO . logger . debug "Reading #{@path} // #{relative_path}..." :: Zip :: File . open ( @path ) . read ( relative_path ) end
Description:
Read a file inside a zip file without extracting it to the filesystem.
Description : Read a file inside a zip file without extracting it to the filesystem .
relative_path