693件ヒット
[201-300件を表示]
(0.017秒)
クラス
-
URI
:: FTP (22) -
URI
:: Generic (484) -
URI
:: HTTP (11) -
URI
:: LDAP (110) -
URI
:: MailTo (66)
キーワード
- + (11)
- - (11)
- == (11)
- absolute (11)
- absolute? (11)
- attributes (11)
- attributes= (11)
- coerce (11)
- component (11)
-
default
_ port (11) - dn (11)
- dn= (11)
- extensions (11)
- extensions= (11)
- filter (11)
- filter= (11)
-
find
_ proxy (11) - fragment (11)
- fragment= (11)
- headers (11)
- headers= (11)
- hierarchical? (11)
- host (11)
- host= (11)
- hostname (11)
- hostname= (11)
- merge (11)
- merge! (11)
- normalize (11)
- normalize! (11)
- opaque (11)
- opaque= (11)
- parser (11)
- password (11)
- password= (11)
- path (11)
- path= (11)
- port (11)
- port= (11)
- query (11)
- query= (11)
- registry (11)
- registry= (11)
- relative? (11)
-
request
_ uri (11) -
route
_ from (11) -
route
_ to (11) - scheme (11)
- scheme= (11)
- scope (11)
- scope= (11)
- select (11)
- to (11)
- to= (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) - typecode (11)
- typecode= (11)
- user (11)
- user= (11)
- userinfo (11)
- userinfo= (11)
検索結果
先頭5件
-
URI
:: Generic # to _ s -> String (11031.0) -
自身が表す URI を文字列として返します。
...自身が表す URI を文字列として返します。
例:
require 'uri'
p URI.parse('http://example.com/').to_s #=> "http://example.com/"... -
URI
:: Generic # opaque -> String | nil (11027.0) -
自身の opaque を文字列で返します。設定されていない場合は nil を返します。
...列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/').opaque #=> nil
p URI.parse('mailto:nospam@localhost').opaque #=> "nospam@localhost"
p URI.parse('urn:ietf:rfc:1149').opaque #=> "ietf:rfc:1149"... -
URI
:: Generic # select(*components) -> [String] (11027.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]... -
URI
:: Generic # userinfo=(s) (11027.0) -
自身の userinfo を設定します。
...字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。
例:
require 'uri'
u = URI.parse('http://example.com/')
u.userinfo =... -
URI
:: MailTo # headers=(s) (11027.0) -
自身のヘッダーを文字列で設定します。
...を文字列で設定します。
@param s ヘッダーを表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
例:
require 'uri'
m = URI.parse("mailto:nospam@example.com")
m.headers = URI.escape("subject=hello hello")... -
URI
:: MailTo # to=(s) (11027.0) -
自身の e-mail アドレスを文字列で設定します。
...字列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
例:
require 'uri'
m = URI.parse("mailto:nospam@example.com")
m.to = "nospaaaam@example.com"
p m #=> #<URI::MailTo:0xb7bf0614 URL:mailto:nos... -
URI
:: Generic # absolute -> bool (11021.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false... -
URI
:: Generic # absolute? -> bool (11021.0) -
自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されているなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').absolute? #=> true
p URI.parse('./').absolute? #=> false... -
URI
:: Generic # host=(s) (11021.0) -
自身の host を設定します。
...を設定します。
@param s 自身の host を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError host と registry を同時に設定した場合に発生します。
@see URI::Generic#hostname=... -
URI
:: Generic # relative? -> bool (11021.0) -
自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
...自身に scheme が設定されていないなら true を返します。そうでない場合は false を返します。
例:
require 'uri'
p URI.parse('http://example.com/').relative? #=> false
p URI.parse('./').relative? #=> true...