module Bundler::URI
def self.split(uri)
["fragment", "top"]]
["query", "tag=networking&order=newest"],
["opaque", nil],
["path", "/forum/questions/"],
["registry", nil],
["port", "123"],
["host", "www.example.com"],
["userinfo", "john.doe"],
[["scheme", "https"],
# =>
names.zip(values)
values = Bundler::URI.split('https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top')
names = %w[scheme userinfo host port registry path opaque query fragment]
each array element is a string or +nil+:
formed from the string +uri+;
Returns a 9-element array representing the parts of the \Bundler::URI
def self.split(uri) RFC3986_PARSER.split(uri) end