Gary Wright wrote: > On Apr 1, 2007, at 6:42 PM, Jamal Soueidan wrote: > >>> If the string you pass to URI.parse corresponds to one of these >>> types, then >>> parse returns an instance of the appropriate class. Otherwise, it >>> will return an >>> instance of class URI::Generic >> >> I wonder actually how you knew that it will return one of these types >> and why do you think it will return Generic? > > In the description of URI.parse it says: > > Creates one of the URIs subclasses instance from the string > > The documentation is quite sparse for URI. I also see that split return an array of the following parts * Scheme * Userinfo * Host * Port * Registry * Path * Opaque * Query * Fragment -- Posted via http://www.ruby-forum.com/.