るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.054秒)

別のキーワード

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

クラス

キーワード

検索結果

URI::MailTo#to_mailtext -> String (60466.0)

URI オブジェクトからメールテキスト文字列を生成します。

...
URI
オブジェクトからメールテキスト文字列を生成します。

例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext

=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&...

URI::Generic#select(*components) -> [String] (51418.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#default_port -> Integer | nil (51346.0)

self.class.default_port を返します。

...self.class.default_port を返します。

@see URI::Generic.default_port...

URI::LDAP#filter=(s) (51328.0)

自身の filter を文字列で設定します。

自身の filter を文字列で設定します。

@param s 自身の filter を文字列で設定します。

URI::MailTo#to_rfc822text -> String (51166.0)

URI オブジェクトからメールテキスト文字列を生成します。

...
URI
オブジェクトからメールテキスト文字列を生成します。

例:
require 'uri'
p mailto = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
print mailto.to_mailtext

=> #<URI::MailTo:0x20104a0e URL:mailto:ruby-list@ruby-lang.org?subject=subscribe&...

絞り込み条件を変える

URI::MailTo#to=(s) (42172.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::MailTo#headers=(s) (42136.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 -> String (42082.0)

自身の e-mail アドレスを文字列で返します。

...自身の e-mail アドレスを文字列で返します。

例:
require 'uri'
p URI.parse("mailto:nospam@example.com").to #=> "nospam@example.com"...

URI::MailTo#headers -> [[String]] (42064.0)

自身のヘッダーを文字列の配列の配列として設定します。

...自身のヘッダーを文字列の配列の配列として設定します。

例:
require 'uri'
m = URI.parse("mailto:ruby-list@ruby-lang.org?subject=subscribe&cc=myaddr")
p m.headers #=> [["subject", "subscribe"], ["cc", "myaddr"]]...

URI::LDAP#attributes=(s) (42028.0)

自身の Attribute を文字列で設定します。

自身の Attribute を文字列で設定します。

@param s 自身の Attribute を文字列で設定します。

絞り込み条件を変える

URI::LDAP#dn=(s) (42028.0)

自身の Distinguished Name を文字列で設定します。

自身の Distinguished Name を文字列で設定します。

@param s 自身の Distinguished Name を文字列で指定します。

URI::LDAP#extensions=(s) (42028.0)

自身の extensions を文字列で設定します。

自身の extensions を文字列で設定します。

@param s 自身の extensions を文字列で設定します。

URI::LDAP#scope=(s) (42028.0)

自身の Scope を文字列で設定します。

自身の Scope を文字列で設定します。

@param s 自身の Scope を文字列で設定します。

URI::Generic#+(rel) -> URI::Generic (33970.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

...結した新しい URI オブジェクトを生成して返します。

3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。


@param rel 連結したいパスを文字列か URI オブジェクトで...
...uire 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI
('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI
('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP...
...0xb7ca2738 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:htt...

URI::Generic#merge(rel) -> URI::Generic (33970.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

...結した新しい URI オブジェクトを生成して返します。

3986 の Section 5.2 の仕様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。


@param rel 連結したいパスを文字列か URI オブジェクトで...
...uire 'uri'
p URI.parse('http://example.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI
('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI
('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP...
...0xb7ca2738 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI
('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:htt...

絞り込み条件を変える

URI::Generic#==(uri) -> bool (33883.0)

引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。

...した URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。

@param uri 比較したい URI URI オブジェクトで指定します。

例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('ht...

URI::Generic#find_proxy(env = ENV) -> URI | nil (33751.0)

プロキシ URI を返します。

...プロキシ URI を返します。

プロキシ URI は http_proxy, ftp_proxy, no_proxy などの環境変数から取得
します。適切なプロキシが見つからない場合は nil を返します。

環境変数は大文字にしたもの(HTTP_PROXY, FTP_PROXY, NO_PROXYなど)も調べ...
...区別しない場合は http_proxy も) は使
われません。代わりに CGI_HTTP_PROXY が使われます。

@param env 環境変数 ENV の代わりに参照するオブジェクトを指定します。

@raise BadURIError selfが相対URIであった場合に発生します。

@see ENV...

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

自身の 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')....

URI::Generic#merge!(rel) -> self (33418.0)

与えられたパス rel を自身へ連結します。

...様に従います。
rel が文字列の場合は URI.parse(rel) によって、URI に変換してから連結します。

@param rel 連結したいパスを文字列か URI オブジェクトで与えます。

例:
require 'uri'
u = URI.parse('http://example.com/')
u.merge!('/foo/bar.htm...

URI::Generic#opaque -> String | nil (33418.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#component -> [Symbol] (33346.0)

self.class.component を返します。

...self.class.component を返します。

@see URI::Generic.component...

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

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

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

@see URI::Generic#hostname...