84件ヒット
[1-84件を表示]
(0.031秒)
キーワード
-
delete
_ all (24) - foreach (12)
- start (24)
- unlink (12)
検索結果
先頭5件
- File
. delete(*filename) -> Integer - Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () - Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () - File
. unlink(*filename) -> Integer - Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> ()
-
File
. delete(*filename) -> Integer (18120.0) -
ファイルを削除します。削除したファイルの数を返します。 削除に失敗した場合は例外 Errno::EXXX が発生します。
...。
//emlist[例][ruby]{
IO.write("test.txt", "test")
p File.exist?("test.txt") # => true
p File.delete("test.txt") # => 1
p File.exist?("test.txt") # => false
begin
File.delete("test.txt")
rescue
p $! # => #<Errno::ENOENT: No such file or directory @ unlink_internal - test.txt>
end
//}... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () (6121.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...ト(通常は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@......ていない場合に発生します
@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| . . . . } -> () (6121.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...ト(通常は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@......ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#delete_all... -
File
. unlink(*filename) -> Integer (3020.0) -
ファイルを削除します。削除したファイルの数を返します。 削除に失敗した場合は例外 Errno::EXXX が発生します。
...。
//emlist[例][ruby]{
IO.write("test.txt", "test")
p File.exist?("test.txt") # => true
p File.delete("test.txt") # => 1
p File.exist?("test.txt") # => false
begin
File.delete("test.txt")
rescue
p $! # => #<Errno::ENOENT: No such file or directory @ unlink_internal - test.txt>
end
//}... -
Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (25.0) -
POP セッションを開始し、 サーバ上のすべてのメールを取りだし、 個々のメールを引数としてブロックを呼びだします。
...lse) {|pop|
pop.each_mail do |m|
yield m
end
}
使用例:
require 'net/pop'
Net::POP3.foreach('pop.example.com', 110,
'YourAccount', 'YourPassword') do |m|
file.write m.pop
m.delete if $DELETE
end
@param address POP3サーバのホスト名文... -
Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) -> Net :: POP3 (13.0) -
Net::POP3 オブジェクトを生成し、サーバへ接続します。
...用例:
require 'net/pop'
Net::POP3.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop
m.delete
end
}
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウン... -
Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) {|pop| . . . . } -> object (13.0) -
Net::POP3 オブジェクトを生成し、サーバへ接続します。
...用例:
require 'net/pop'
Net::POP3.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop
m.delete
end
}
@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウン...