るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. ftp put
  2. ftp get
  3. ftp new
  4. ftp list
  5. ftp dir

ライブラリ

クラス

検索結果

URI::Generic#path -> String | nil (54481.0)

自身の path を文字列で返します。設定されていない場合は nil を返します。

自身の path を文字列で返します。設定されていない場合は nil を返します。

require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> nil
p URI('ftp://example.com/foo').path #=> 'foo'
p UR...