def expand
      if absolute_path?
        # Stored path was absolute, don't add root
        scheme + path
      else
        if scheme.empty?
          File.join(root, path)
        else
          # We always want to return an absolute uri,
          # make sure the path starts with a slash.
          scheme + File.join("/".freeze, root, path)
        end
      end
    end
def expand
      if absolute_path?
        # Stored path was absolute, don't add root
        scheme + path
      else
        if scheme.empty?
          File.join(root, path)
        else
          # We always want to return an absolute uri,
          # make sure the path starts with a slash.
          scheme + File.join("/".freeze, root, path)
        end
      end
    end
Internal: Convert a "compressed" uri to an absolute path

 If a uri is inside of the environment's root it will not
 start with a slash for example:

   file://this/is/a/relative/path

 If a uri is outside the root, it will start with a slash:

   file:///This/is/an/absolute/path

 Returns String