515件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (74)
- getoptlong (12)
- logger (62)
-
minitest
/ unit (19) -
net
/ http (24) -
net
/ imap (120) -
net
/ smtp (24) - optparse (24)
-
rubygems
/ specification (12) -
rubygems
/ user _ interaction (36) -
shell
/ system-command (12) -
syslog
/ logger (96)
クラス
- Exception (44)
- Fiber (6)
-
Gem
:: Specification (12) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - GetoptLong (12)
- Logger (60)
-
Logger
:: Application (2) -
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeMessage (108) -
Net
:: IMAP :: Envelope (12) -
Net
:: SMTP (24) -
OptionParser
:: ParseError (24) -
Shell
:: SystemCommand (12) - SignalException (12)
-
Syslog
:: Logger (84) -
Syslog
:: Logger :: Formatter (12) - Thread (12)
モジュール
-
MiniTest
:: Assertions (19)
キーワード
- add (36)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - call (12)
-
content
_ id (12) - debug (12)
- description (12)
- encoding (12)
- error (12)
-
exception
_ details (1) - fatal (12)
- formatter (12)
- info (12)
- inspect (12)
- language (12)
- log (26)
- md5 (12)
-
media
_ subtype (12) -
media
_ type (12) - msg (12)
- notify (12)
- param (12)
- pass (1)
- raise (18)
- ready (12)
- signm (12)
- skip (1)
- subtype (12)
-
to
_ s (24) - unknown (12)
- updated (36)
- warn (12)
検索結果
先頭5件
-
Exception
# message -> String (18208.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Net
:: HTTPResponse # message -> String (18208.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 (18202.0) -
標準エラーに出力するメッセージを返します。
標準エラーに出力するメッセージを返します。
@return 文字列を返します。 -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (12214.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...っています。
* puts(str = '') strを出力して CR LFを出力
* print(str) strを出力
* printf(fmt, *args) sprintf(fmt,*args) を出力
* write(str):: str を出力して書き込んだバイト数を返す
* <<(str):: str を出力してストリーム......信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: te......TPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します
@see Net::SMTP#send_message... -
Exception
# full _ message(highlight: true , order: :bottom) -> String (6320.0) -
例外の整形された文字列を返します。
...l_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[1mTraceback \e[m(most re... -
Net
:: IMAP :: Envelope # message _ id -> String | nil (6218.0) -
message_id を文字列で返します。
...message_id を文字列で返します。
エンベロープに存在しないときは nil を返します。... -
Gem
:: Specification # post _ install _ message -> String (6202.0) -
インストール完了後に表示するメッセージを返します。
インストール完了後に表示するメッセージを返します。 -
GetoptLong
# error _ message -> String | nil (6202.0) -
現在のエラーのエラーメッセージを返します。エラーが発生していな ければ、nil を返します。
現在のエラーのエラーメッセージを返します。エラーが発生していな
ければ、nil を返します。 -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (6014.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...っています。
* puts(str = '') strを出力して CR LFを出力
* print(str) strを出力
* printf(fmt, *args) sprintf(fmt,*args) を出力
* write(str):: str を出力して書き込んだバイト数を返す
* <<(str):: str を出力してストリーム......信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.open_message_stream('from@example.com', 'to@example.net') {|f|
f.puts 'From: from@example.com'
f.puts 'To: to@example.net'
f.puts 'Subject: te......TPエラーコード5xxの場合に発生します
@raise Net::SMTPAuthenticationError 送信に必要な認証を行っていなかった場合に発生します
@raise Net::SMTPUnknownError SMTPエラーコードがプロトコル上不正な場合に発生します
@see Net::SMTP#send_message...