24件ヒット
[1-24件を表示]
(0.166秒)
ライブラリ
-
net
/ pop (12) -
rexml
/ document (12)
クラス
-
Net
:: POP3 (12) -
REXML
:: Attributes (12)
検索結果
先頭2件
-
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (21208.0) -
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_elements("/root/a").first
a.attributes.delete_all("att") # => [a... -
Net
:: POP3 # delete _ all {|popmail| . . . . } -> () (18209.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...