295件ヒット
[1-100件を表示]
(0.110秒)
ライブラリ
- ビルトイン (51)
- getoptlong (11)
- logger (11)
-
minitest
/ unit (1) -
net
/ http (22) -
net
/ imap (110) -
net
/ smtp (33) - optparse (22)
-
rubygems
/ specification (11) -
shell
/ system-command (12) -
syslog
/ logger (11)
クラス
- Exception (40)
-
Gem
:: Specification (11) - GetoptLong (11)
- Logger (11)
-
Net
:: HTTPResponse (22) -
Net
:: IMAP :: BodyTypeMessage (99) -
Net
:: IMAP :: Envelope (11) -
Net
:: SMTP (33) -
OptionParser
:: ParseError (22) -
Shell
:: SystemCommand (12) - SignalException (11)
-
Syslog
:: Logger :: Formatter (11)
モジュール
キーワード
- call (11)
-
content
_ id (11) - description (11)
- encoding (11)
-
exception
_ details (1) - formatter (11)
- inspect (11)
- language (11)
- md5 (11)
-
media
_ subtype (11) -
media
_ type (11) - msg (11)
- notify (12)
- param (11)
-
send
_ mail (11) - sendmail (11)
- signm (11)
- subtype (11)
-
to
_ s (22)
検索結果
先頭5件
-
Exception
# message -> String (18210.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (18210.0) -
HTTP サーバがリザルトコードに付加して返すメッセージです。 例えば 'Not Found' などです。
...して返すメッセージです。
例えば 'Not Found' などです。
msg は obsolete です。使わないでください。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.message # => "OK"
//}... -
OptionParser
:: ParseError # message -> String (18204.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
Exception
# full _ message(highlight: true , order: :bottom) -> String (6221.0) -
例外の整形された文字列を返します。
...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... -
Net
:: IMAP :: Envelope # message _ id -> String | nil (6219.0) -
message_id を文字列で返します。
...message_id を文字列で返します。
エンベロープに存在しないときは nil を返します。... -
Gem
:: Specification # post _ install _ message -> String (6203.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
GetoptLong
# error _ message -> String | nil (6203.0) -
現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。
現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。 -
Net
:: IMAP :: BodyTypeMessage # language -> String | [String] | nil (3203.0) -
1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。
1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。 -
Net
:: IMAP :: BodyTypeMessage # param -> { String => String } | nil (3203.0) -
MIME のボディパラメータをハッシュテーブルで返します。
MIME のボディパラメータをハッシュテーブルで返します。
ハッシュテーブルのキーがパラメータ名となります。
@see 2045 -
Net
:: SMTP # send _ message(mailsrc , from _ addr , *to _ addrs) -> () (3120.0) -
メールを送信します。
...たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,...