180件ヒット
[1-100件を表示]
(0.190秒)
ライブラリ
- uri (180)
検索結果
先頭5件
-
URI
:: Generic # registry -> String | nil (15403.0) -
自身の registry を文字列で返します。設定されていない場合は nil を返します。
...自身の registry を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: Generic # fragment -> String | nil (15303.0) -
自身の fragment を文字列で返します。設定されていない場合は nil を返します。
...自身の fragment を文字列で返します。設定されていない場合は nil を返します。
例:
require '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 アドレスが設定されていた
場合はブラケットを削除した文字列を返しますがそれ以......外は同じ文字列を返し
ます。
require '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 を返します。
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 URI('ftp://example.com/%2Ffoo').path #=> '/foo'... -
URI
:: Generic # select(*components) -> [String] (12303.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...onents に対応する構成要素を文字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require '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 を文字列として返します。
例:
require 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/"...