るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.233秒)
トップページ > ライブラリ:uri[x] > クエリ:URI::Generic[x] > クエリ:relative?[x]

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::pkey::ec::group
  4. new openssl::x509::certificate
  5. start net::smtp

クラス

検索結果

URI::Generic#relative? -> bool (39115.0)

自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。

...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。

例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true...