class Bundler::URI::RFC2396_Parser
def parse(uri)
#=> #
p.parse("ldap://ldap.example.com/dc=example?user=john")
p = Bundler::URI::Parser.new
== Usage
(File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or Bundler::URI::Generic.
Parses +uri+ and constructs either matching Bundler::URI scheme object
== Description
String
+uri+::
== Args
def parse(uri) scheme, userinfo, host, port, registry, path, opaque, query, fragment = self.split(uri) if scheme && Bundler::URI.scheme_list.include?(scheme.upcase) Bundler::URI.scheme_list[scheme.upcase].new(scheme, userinfo, host, port, registry, path, opaque, query, fragment, self) else Generic.new(scheme, userinfo, host, port, registry, path, opaque, query, fragment, self) end end