84件ヒット
[1-84件を表示]
(0.065秒)
検索結果
先頭5件
- URI
:: Generic . new(scheme , userinfo , host , port , registry , path , opaque , query , fragment , parser = URI :: DEFAULT _ PARSER , arg _ check = false) -> URI :: Generic - URI
:: Generic . build(ary) -> URI :: Generic - URI
:: Generic . build(hash) -> URI :: Generic - URI
:: Generic . build2(ary) -> URI :: Generic - URI
:: Generic . build2(hash) -> URI :: Generic
-
URI
:: Generic . new(scheme , userinfo , host , port , registry , path , opaque , query , fragment , parser = URI :: DEFAULT _ PARSER , arg _ check = false) -> URI :: Generic (3225.0) -
各引数を成分とする URI::Generic オブジェクトを生成して返します。
...各引数を成分とする URI::Generic オブジェクトを生成して返します。
@param scheme 構成要素 scheme を表す文字列を与えます。
@param userinfo 構成要素を表す文字列を与えます。
@param host 構成要素を表す文字列を与えます。
@param p... -
URI
:: Generic . build(ary) -> URI :: Generic (3131.0) -
引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構......はシンボルは以下のいずれかです。
ハッシュの値は文字列で与えます。
//emlist{
:scheme ,:userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。... -
URI
:: Generic . build(hash) -> URI :: Generic (3131.0) -
引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
...引数で与えられた URI 構成要素から URI::Generic オブジェクトを生成します。
@param ary 構成要素を表す配列を与えます。要素は以下の順です。
//emlist{
[scheme, userinfo, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構......はシンボルは以下のいずれかです。
ハッシュの値は文字列で与えます。
//emlist{
:scheme ,:userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment
//}
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。... -
URI
:: Generic . build2(ary) -> URI :: Generic (3131.0) -
URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。
...URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。
@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u......o, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーはシンボルは以下
のいずれかです。 ハッシュの値は文字列で与えます。
//emlist{
:scheme, :userinfo, :host,... -
URI
:: Generic . build2(hash) -> URI :: Generic (3131.0) -
URI::Generic.build と同じですが、例外 URI::InvalidComponentError が発生した場合に、引数の各要素を URI.escape して再度 build を試み ます。
...URI::Generic.build と同じですが、例外 URI::InvalidComponentError
が発生した場合に、引数の各要素を URI.escape して再度 build を試み
ます。
@param ary 構成要素を表す文字列の配列を与えます。要素は以下の順です。
//emlist{
[scheme, u......o, host, port, registry, path, opaque, query, fragment]
//}
@param hash 構成要素を表すハッシュを与えます。ハッシュのキーはシンボルは以下
のいずれかです。 ハッシュの値は文字列で与えます。
//emlist{
:scheme, :userinfo, :host,... -
URI
:: Generic . component -> [Symbol] (3013.0) -
URI の構成要素を表すシンボルの配列を返します。
...URI の構成要素を表すシンボルの配列を返します。
require 'uri'
p URI::Generic.component
p URI::MailTo.component
# => [:scheme, :userinfo, :host, :port, :registry, :path, :opaque, :query, :fragment]
# => [:scheme, :to, :headers]... -
URI
. parse(uri _ str) -> object (39.0) -
与えられた URI から該当する URI::Generic のサブクラスのインスタンスを生成して 返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
...与えられた URI から該当する URI::Generic のサブクラスのインスタンスを生成して
返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
@param uri_str パースしたい URI を文字列として与えます。
@rai......失敗した場合に発生します。
例:
require 'uri'
p uri = URI.parse("http://www.ruby-lang.org/")
# => #<URI::HTTP:0x201002a6 URL:http://www.ruby-lang.org/>
p uri.scheme # => "http"
p uri.host # => "www.ruby-lang.org"
p uri.port # => 80
p uri.path # => "/"...