method

parse

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: RFC3986_Parser
parse(uri) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/uri/rfc3986_parser.rb, line 70
    def parse(uri) # :nodoc:
      scheme, userinfo, host, port,
        registry, path, opaque, query, fragment = self.split(uri)
      scheme_list = URI.scheme_list
      if scheme && scheme_list.include?(uc = scheme.upcase)
        scheme_list[uc].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
Register or log in to add new notes.