method

parse

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: RFC2396_Parser
parse(uri) public

Args

uri

String

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>
Show source
Register or log in to add new notes.