るりまサーチ

最速Rubyリファレンスマニュアル検索!
180件ヒット [1-100件を表示] (0.190秒)
トップページ > クエリ:t[x] > クエリ:r[x] > 種類:インスタンスメソッド[x] > クエリ:string[x] > クラス:URI::Generic[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< 1 2 > >>

URI::Generic#registry -> String | nil (15403.0)

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

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

URI::Generic#fragment -> String | nil (15303.0)

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

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

例:
r
equire 'uri'
u = URI.parse('http://example.com/#frgmt')
p u.fragment #=> "frgmt"...

URI::Generic#port -> String | nil (15303.0)

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

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

URI::Generic#userinfo -> String | nil (12403.0)

自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。

...自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。...

URI::Generic#host -> String | nil (12303.0)

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

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

@see URI::Generic#hostname...

絞り込み条件を変える

URI::Generic#hostname -> String | nil (12303.0)

自身の hostname を文字列で返します。また、URI::Generic#host が設 定されていない場合は nil を返します。

...自身の hostname を文字列で返します。また、URI::Generic#host が設
定されていない場合は nil を返します。

このメソッドは URI::Generic#host に IPv6 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以...
...外は同じ文字列を返し
ます。

r
equire 'uri'
u = URI("http://[::1]/bar")
p u.hostname # => "::1"
p u.host # => "[::1]"...

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

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

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

r
equire '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 URI('ftp://example.com/%2Ffoo').path #=> '/foo'...

URI::Generic#select(*components) -> [String] (12303.0)

指定された components に対応する構成要素を文字列の配列として返します。

...onents に対応する構成要素を文字列の配列として返します。

@param components 構成要素名をシンボルで指定します。

例:
r
equire 'uri'

uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:my...
...pass", "my.example.com", "/test.rbx"]...

URI::Generic#to_s -> String (12303.0)

自身が表す URI を文字列として返します。

...自身が表す URI を文字列として返します。

例:
r
equire 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/"...
<< 1 2 > >>