77件ヒット
[1-77件を表示]
(0.027秒)
ライブラリ
-
net
/ smtp (22) - psych (44)
-
rexml
/ streamlistener (11)
クラス
-
Net
:: SMTP (22) -
Psych
:: Handler (11) -
Psych
:: Stream (22) -
Psych
:: Visitors :: YAMLTree (11)
モジュール
キーワード
- ready (11)
-
start
_ stream (11) -
tag
_ start (11)
検索結果
先頭5件
- Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Stream - Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) {|em| . . . } -> Psych :: Stream - Psych
:: Visitors :: YAMLTree # start(encoding = Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream - Psych
:: Handler # start _ stream(encoding) -> () - REXML
:: StreamListener # tag _ start(name , attrs) -> ()
-
Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) -> Psych :: Stream (21325.0) -
Ruby オブジェクトを YAML document に変換するための準備をします。
...Psych::Stream.new で指定した
出力先に出力されます。
finish を呼び出すことで出力が完了します(finish を呼び出さないと
最後まで出力されない場合があります)。
ブロック付きで start を呼び出すと、変換準備を終えた Stream オ... -
Psych
:: Stream # start(encoding = Psych :: Nodes :: Stream :: UTF8) {|em| . . . } -> Psych :: Stream (21325.0) -
Ruby オブジェクトを YAML document に変換するための準備をします。
...Psych::Stream.new で指定した
出力先に出力されます。
finish を呼び出すことで出力が完了します(finish を呼び出さないと
最後まで出力されない場合があります)。
ブロック付きで start を呼び出すと、変換準備を終えた Stream オ... -
Psych
:: Visitors :: YAMLTree # start(encoding = Nodes :: Stream :: UTF8) -> Psych :: Nodes :: Stream (18304.0) -
Ruby オブジェクトから YAML AST への変換のための準備をします。
Ruby オブジェクトから YAML AST への変換のための準備をします。
Psych::Visitors::YAMLTree#push が呼び出されたとき、
まだこのメソッドが呼び出されていなければ push メソッドがこの
メソッドを呼び出し、変換の準備をします。
encoding には以下のいずれかを指定できます。
* Psych::Nodes::Node::UTF8
* Psych::Nodes::Node::UTF16BE
* Psych::Nodes::Node::UTF16LE
@param encoding YAML AST に設定するエンコーディング -
Psych
:: Handler # start _ stream(encoding) -> () (12203.0) -
YAML ストリームの始まりで呼び出されます。
YAML ストリームの始まりで呼び出されます。
encoding にはストリームのエンコーディング(以下のいずれか)が渡されます。
* Psych::Parser::UTF8
* Psych::Parser::UTF16BE
* Psych::Parser::UTF16LE
このメソッドは YAML のストリームごとに呼び出されます。一つのストリームには
複数のドキュメントが含まれている可能性があります。
必要に応じてこのメソッドを override してください。
@param encoding ストリームのエンコーディング(整数値) -
REXML
:: StreamListener # tag _ start(name , attrs) -> () (9102.0) -
開始タグをパースしたとき に呼び出されるコールバックメソッドです。
開始タグをパースしたとき
に呼び出されるコールバックメソッドです。
@param name タグ名が文字列で渡されます
@param attrs タグの属性が"属性名" => "属性値"という Hash で渡されます
=== 例
<tag attr1="value1" attr2="value2">
という開始タグに対し、
name: "tag"
attrs: {"attr1" => "value1", "attr2" => "value2"}
という引数が渡されます。 -
Net
:: SMTP # open _ message _ stream(from _ addr , *to _ addrs) {|f| . . . . } -> () (6114.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...) 、
to_addrs には送信先メールアドレスを文字列で渡します。
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'... -
Net
:: SMTP # ready(from _ addr , *to _ addrs) {|f| . . . . } -> () (3014.0) -
メール書き込みの準備をし、書き込み先のストリームオブジェクトを ブロックに渡します。ブロック終了後、書きこんだ結果が 送られます。
...) 、
to_addrs には送信先メールアドレスを文字列で渡します。
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'...