method
parse
v2_6_3 -
Show latest stable
- Class:
URI::RFC2396_Parser
parse(uri)public
Args
uri |
Description
Parses uri and constructs either matching URI scheme object (File, FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic.
Usage
p = URI::Parser.new p.parse("ldap://ldap.example.com/dc=example?user=john") #=> #<URI::LDAP ldap://ldap.example.com/dc=example?user=john>