るりまサーチ

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

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

URI::MailTo#to_mailtext -> String (9307.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&...
...cc=myaddr>
T
o: ruby-list@ruby-lang.org
Subject: subscribe
Cc: myaddr...

URI::MailTo#to_rfc822text -> String (9307.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&...
...cc=myaddr>
T
o: ruby-list@ruby-lang.org
Subject: subscribe
Cc: myaddr...

URI::MailTo#to -> String (9305.0)

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

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

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

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

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

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

URI::FTP#typecode -> String | nil (6305.0)

ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。 設定されていない場合は nil を返します。

ファイル転送のタイプを文字列で返します。"a" はテキスト、"i" はバイナリ、"d" はディレクトリを表します。
設定されていない場合は nil を返します。

絞り込み条件を変える

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

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

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

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

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

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

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

@see URI::Generic#hostname...

URI::Generic#hostname -> String | nil (6305.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 (6305.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'...
<< 1 2 3 ... > >>