るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.023秒)
トップページ > バージョン:2.1.0[x] > クエリ:section[x] > クエリ:Section[x] > クラス:URI::Generic[x]

別のキーワード

  1. section new
  2. section title
  3. section inspect
  4. section parent
  5. section comment

ライブラリ

キーワード

検索結果

URI::Generic#+(rel) -> URI::Generic (40.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。


@param rel 連結したいパスを文字列か URI オブジェクトで与えます。

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

URI::Generic#merge!(rel) -> self (40.0)

与えられたパス rel を自身へ連結します。

与えられたパス rel を自身へ連結します。

2396 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。

@param rel 連結したいパスを文字列か URI オブジェクトで与えます。

例:
require 'uri'
u = URI.parse('http://example.com/')
u.merge!('/foo/bar.html')
p u.to_s #=> http://example.co...

URI::Generic#merge(rel) -> URI::Generic (40.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。


@param rel 連結したいパスを文字列か URI オブジェクトで与えます。

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