るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.103秒)

別のキーワード

  1. socket pf_route
  2. socket af_route
  3. socket iff_route
  4. uri route_from

ライブラリ

クラス

検索結果

URI::Generic#route_to(dst) -> URI::Generic (29239.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>...