Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > rubygems/remote_fetcherライブラリ > Gem::RemoteFetcherクラス > normalize_uri

instance method Gem::RemoteFetcher#normalize_uri

normalize_uri(uri) -> String[permalink][rdoc]

URI のスキーム部分が欠けている場合に "http://" を補って返します。

[PARAM] uri:
URI 文字列を指定します。