Method: Bundler::URI::RFC2396_Parser#parse
- Defined in:
- lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb
permalink #parse(uri) ⇒ Object
Args
uri
-
String
Description
Parses uri
and constructs either matching Bundler::URI scheme object (File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or Bundler::URI::Generic.
Usage
p = Bundler::URI::Parser.new
p.parse("ldap://ldap.example.com/dc=example?user=john")
#=> #<Bundler::URI::LDAP ldap://ldap.example.com/dc=example?user=john>
209 210 211 |
# File 'lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb', line 209 def parse(uri) Bundler::URI.for(*self.split(uri), self) end |