123456789_123456789_123456789_123456789_123456789_

Module: Gem::UriParsing

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rubygems/uri_parsing.rb

Instance Method Summary

Instance Method Details

#parse_uri(source_uri) (private)

[ GitHub ]

  
# File 'lib/rubygems/uri_parsing.rb', line 7

def parse_uri(source_uri)
  return source_uri unless source_uri.is_a?(String)

  uri_parser.parse(source_uri)
end

#uri_parser (private)

[ GitHub ]

  
# File 'lib/rubygems/uri_parsing.rb', line 15

def uri_parser
  require "uri"

  Gem::UriParser.new
end