module Sprockets::URIUtils
def split_file_uri(uri)
Experimental RBS support (using type sampling data from the type_fusion project).
def split_file_uri: (String uri) -> Array[String]
This signature was generated using 28 samples from 2 applications.
uri - String uri
Internal: Parse file: URI into component parts.
def split_file_uri(uri) scheme, _, host, _, _, path, _, query, _ = URI.split(uri) path = URI::Generic::DEFAULT_PARSER.unescape(path) path.force_encoding(Encoding::UTF_8) # Hack for parsing Windows "/C:/Users/IEUser" paths if File::ALT_SEPARATOR && path[2] == ':' path = path[1..-1] end [scheme, host || '', path, query] end