321件ヒット
[201-300件を表示]
(0.094秒)
ライブラリ
- ビルトイン (56)
- getoptlong (12)
- logger (12)
-
minitest
/ unit (1) -
net
/ http (24) -
net
/ imap (120) -
net
/ smtp (36) - optparse (24)
-
rubygems
/ specification (12) -
shell
/ system-command (12) -
syslog
/ logger (12)
クラス
- Exception (44)
-
Gem
:: Specification (12) - GetoptLong (12)
- Logger (12)
-
Net
:: HTTPResponse (24) -
Net
:: IMAP :: BodyTypeMessage (108) -
Net
:: IMAP :: Envelope (12) -
Net
:: SMTP (36) -
OptionParser
:: ParseError (24) -
Shell
:: SystemCommand (12) - SignalException (12)
-
Syslog
:: Logger :: Formatter (12)
モジュール
キーワード
- call (12)
-
content
_ id (12) - description (12)
- encoding (12)
-
exception
_ details (1) - formatter (12)
- inspect (12)
- language (12)
- md5 (12)
-
media
_ subtype (12) -
media
_ type (12) - msg (12)
- notify (12)
- param (12)
-
send
_ mail (12) - sendmail (12)
- signm (12)
- subtype (12)
-
to
_ s (24)
検索結果
先頭5件
-
Net
:: IMAP :: BodyTypeMessage # description -> String | nil (3102.0) -
Content-Description の値を文字列で返します。
Content-Description の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # encoding -> String (3102.0) -
Content-Transfer-Encoding の値を文字列で返します。
Content-Transfer-Encoding の値を文字列で返します。
@see 2045 -
Net
:: IMAP :: BodyTypeMessage # md5 -> String | nil (3102.0) -
ボディの MD5 値を文字列で返します。
ボディの MD5 値を文字列で返します。 -
MiniTest
:: Assertions # exception _ details(exception , message) -> String (209.0) -
与えられた例外の詳細を文字列として返します。
...与えられた例外の詳細を文字列として返します。
@param exception 例外を指定します。
@param message メッセージを指定します。... -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (204.0) -
@todo
@todo
@param opts
@see Shell#notify -
Syslog
:: Logger :: Formatter # call(severity , time , progname , message) -> String (203.0) -
引数を元にフォーマットした文字列を返します。
引数を元にフォーマットした文字列を返します。
ライブラリ内部で使用します。 -
Exception
# inspect -> String (118.0) -
self のクラス名と message を文字列にして返します。
...self のクラス名と message を文字列にして返します。
//emlist[例][ruby]{
begin
raise "exception"
rescue
p $!.inspect # => "#<RuntimeError: exception>"
end
//}... -
SignalException
# signm -> String (118.0) -
self.message のエイリアスです。
...self.message のエイリアスです。
//emlist[例][ruby]{
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
puts e.signm # => SIGHUP
end
//}... -
Logger
# formatter -> String (114.0) -
ログを出力する際に使用するフォーマッターを取得します。
...ーマッターを取得します。
このメソッドの返り値が持つ call メソッドは 4 つの引数 (severity, time, program name, message) を受けとります。
//emlist[例][ruby]{
require 'logger'
logger = Logger.new(STDOUT)
logger.formatter # => nil
logger.info("test")
# => I,......g|
"time:#{timestamp}\tlevel:#{severity}\tprogname:#{progname}\tmessage:#{msg}\n"
}
logger.formatter = ltsv_formatter
logger.formatter # => #<Proc:0x00007fa3048b8e00@/path/to/file:8>
logger.info("MyApp") { "test" }
# => time:2019-05-09 22:13:56 +0900 level:INFO progname:MyApp message:test
//}... -
Shell
:: SystemCommand # notify(*opts) -> String (104.0) -
@todo
@todo
@param opts
@see Shell#notify -
Net
:: SMTP # send _ mail(mailsrc , from _ addr , *to _ addrs) -> () (20.0) -
メールを送信します。
...たとえば String や File)。
from_domain は送り主のメールアドレス ('...@...'のかたち) 、
to_addrs には送信先メールアドレスを文字列で渡します。
require 'net/smtp'
Net::SMTP.start('smtp.example.com') {|smtp|
smtp.send_message mail_string,...