2件ヒット
[1-2件を表示]
(0.165秒)
ライブラリ
-
net
/ pop (1) -
rexml
/ document (1)
クラス
-
Net
:: POP3 (1) -
REXML
:: Attributes (1)
検索結果
先頭2件
-
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (63625.0) -
name という名前を持つ属性をすべて削除します。
name という名前を持つ属性をすべて削除します。
削除された属性を配列で返します。
@param name 削除する属性の名前
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elem... -
Net
:: POP3 # delete _ all {|popmail| . . . . } -> () (54628.0) -
サーバ上のメールを全て消去します。
サーバ上のメールを全て消去します。
ブロックを与えられたときは消去する前に各メールを引数としてブロックを呼びだします。
メールは Net::POPMail のインスタンスとして渡されます。
使用例:
require 'net/pop'
n = 1
pop.delete_all do |m|
File.open("inbox/#{n}") {|f| f.write m.pop }
n += 1
end