36件ヒット
[1-36件を表示]
(0.043秒)
種類
- 特異メソッド (24)
- インスタンスメソッド (12)
ライブラリ
-
net
/ pop (24) -
rexml
/ document (12)
クラス
-
Net
:: POP3 (24) -
REXML
:: Attributes (12)
検索結果
先頭3件
-
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (21207.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") # => [att=... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () (18214.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウント名文字列
@pa......ram password パスワード文字列
@param isapop 真でAPOPを利用します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPAuthenticationError 認証に失敗した、もしくはAPOPを利用しようとしたがサーバがAPOPを提供してい......ない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#delete_all... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (18214.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウント名文字列
@pa......ram password パスワード文字列
@param isapop 真でAPOPを利用します
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPAuthenticationError 認証に失敗した、もしくはAPOPを利用しようとしたがサーバがAPOPを提供してい......ない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#delete_all...