るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.156秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:l[x] > バージョン:2.4.0[x] > クエリ:at[x] > クラス:URI::Generic[x]

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. l

ライブラリ

キーワード

検索結果

URI::Generic#relative? -> bool (36607.0)

自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。

自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。

例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true

URI::Generic#path -> String | nil (18607.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...