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

instance method Gem::RemoteFetcher#file_uri?

file_uri?(uri) -> bool

"file://" で始まる文字列である場合は真を返します。そうでない場合は偽を返します。

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