るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.177秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[x] > バージョン:2.5.0[x] > クエリ:absolute[x] > クラス:URI::Generic[x]

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. openssl n
  3. openssl n=
  4. rsa n=
  5. pop n_bytes

ライブラリ

キーワード

検索結果

URI::Generic#absolute -> bool (63349.0)

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

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

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

URI::Generic#absolute? -> bool (27349.0)

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

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

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

URI::Generic#-(src) -> URI::Generic (9325.0)

与えられた URI を表す src からの相対パスを返します。

...rc からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>...

URI::Generic#route_from(src) -> URI::Generic (9325.0)

与えられた URI を表す src からの相対パスを返します。

...rc からの相対パスを返します。

@param src 自身の相対パスを算出するための、ルートとなる Absolute URI を与えます。

例:
require 'uri'
p URI.parse('http://example.com/foo/bar.html') - 'http://example.com/'
#=> #<URI::Generic:0x20100256 URL:foo/bar.html>...