るりまサーチ

最速Rubyリファレンスマニュアル検索!
44件ヒット [1-44件を表示] (0.134秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:n[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 (21116.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 (9116.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 (3108.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 (3108.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>...