るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.025秒)
トップページ > バージョン:2.3.0[x] > クエリ:html[x] > クエリ:out[x] > クエリ:route_to[x]

別のキーワード

  1. cgi out
  2. cgi/core out
  3. zlib total_out
  4. zlib avail_out=
  5. zlib avail_out

ライブラリ

クラス

検索結果

URI::Generic#route_to(dst) -> URI::Generic (72658.0)

自身から dst への相対パスを返します。

自身から dst への相対パスを返します。

@param dst URI を文字列かURIオブジェクトで与えます。

例:
require 'uri'
p URI.parse('http://example.com/').route_to('http://example.com/foo/bar.html')

#=> #<URI::Generic:0x20100198 URL:foo/bar.html>