るりまサーチ

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

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 > >>

OptionParser::ParseError#message -> String (18210.0)

標準エラーに出力するメッセージを返します。

...標準エラーに出力するメッセージを返します。

@
return 文字列を返します。...

Exception#full_message(highlight: true, order: :bottom) -> String (6239.0)

例外の整形された文字列を返します。

...と order は 2.5.1 で追加されました。

@
param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。

@
param order :top か :bottom で指定する必...
...ue => e
p e.full_message # => "\e[1mTraceback \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
$stderr = $stdout
p e.full_message # => "test.rb:2:in `<main>': test (RuntimeError)\n"
$stderr = STDERR
p e.full_message # => "\e[1mTrace...
...back \e[m(most recent call last):\ntest.rb:2:in `<main>': \e[1mtest (\e[4;1mRuntimeError\e[m\e[1m)\n\e[m"
end
//}

@
see Exception.to_tty?...
...による文字装飾がついています。


@
param highlight エスケープシーケンスによる文字装飾をつけるかどうかを指定します。
デフォルト値は Exception.to_tty? の返り値と同じです。

@
param order :top か :bottom で指定する必...

Net::IMAP::BodyTypeMessage#param -> { String => String } | nil (3209.0)

MIME のボディパラメータをハッシュテーブルで返します。

...MIME のボディパラメータをハッシュテーブルで返します。

ハッシュテーブルのキーがパラメータ名となります。

@
see 2045...

Net::SMTP#send_message(mailsrc, from_addr, *to_addrs) -> () (3192.0)

メールを送信します。

...たとえば String や File)。

from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。

require 'net/smtp'

Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,...
...'from@example.com',
'to1@example.net', 'to2@example.net'
}

sendmail は obsolete です。

@
param mailsrc メールの内容
@
param from_addr 送信元のメールアドレス
@
param to_addrs 送信先のメールアドレス(複数可、少なくとも1個)

@
raise IOE...
...る場合に発生します
@
raise TimeoutError 接続がタイムアウトした場合に発生します
@
raise Net::SMTPServerBusy SMTPエラーコード420,450の場合に発生します
@
raise Net::SMTPSyntaxError SMTPエラーコード500の場合に発生します
@
raise Net::SMTPFatalError SM...

Net::IMAP::BodyTypeMessage#media_type -> String (3114.0)

MIME のメディアタイプを返します。

...MIME のメディアタイプを返します。

これは "MESSAGE" を返します。

@
see Net::IMAP::BodyTypeMessage#subtype...

絞り込み条件を変える

OptionParser::ParseError#to_s -> String (3110.0)

標準エラーに出力するメッセージを返します。

...標準エラーに出力するメッセージを返します。

@
return 文字列を返します。...

Net::IMAP::BodyTypeMessage#media_subtype -> String (3109.0)

MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。

...MIME のメディアタイプのサブタイプを返します。

media_subtype は obsolete です。

@
see Net::IMAP::BodyTypeMessage#media_type...

Net::IMAP::BodyTypeMessage#subtype -> String (3109.0)

MIME のメディアタイプのサブタイプを返します。 media_subtype は obsolete です。

...MIME のメディアタイプのサブタイプを返します。

media_subtype は obsolete です。

@
see Net::IMAP::BodyTypeMessage#media_type...

Net::IMAP::BodyTypeMessage#content_id -> String | nil (3108.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@
see 2045...
<< 1 2 > >>