class Sprockets::URITar

def compressed_path

Experimental RBS support (using type sampling data from the type_fusion project).

def compressed_path: () -> String

This signature was generated using 99 samples from 6 applications.

Returns String

Only path information is returned, and not scheme.

Otherwise an absolute path will be returned.
it will return a path relative to the environment root.
If the input uri is relative to the environment root

Internal: Returns "compressed" path
def compressed_path
  # windows
  if !@root.start_with?("/".freeze) && path.start_with?("/".freeze)
    consistent_root = "/".freeze + @root
  else
    consistent_root = @root
  end
  if compressed_path = PathUtils.split_subpath(consistent_root, path)
    compressed_path
  else
    path
  end
end