33件ヒット
[1-33件を表示]
(0.034秒)
検索結果
-
Kernel
. # at _ exit { . . . } -> Proc (39274.0) -
与えられたブロックをインタプリタ終了時に実行します。
...に実行します。
at_exitがメソッドである点を除けば、END ブロックによる終了
処理の登録と同等です。登録した処理を取り消すことはできません。
spec/terminateも参照してください。
@return 登録した処理を Proc オブジェクトで......返します。
//emlist[例][ruby]{
3.times do |i|
at_exit{puts "at_exit#{i}"}
end
END{puts "END"}
at_exit{puts "at_exit"}
puts "main_end"
#=> main_end
# at_exit
# END
# at_exit2
# at_exit1
# at_exit0
//}
@see d:spec/control#END,Kernel.#exit!,Kernel.#fork... -
void rb
_ exec _ end _ proc(void) (6148.0) -
END ブロックおよび Kernel#at_exit で登録した Proc オブジェクトを 実行します。
...END ブロックおよび Kernel#at_exit で登録した Proc オブジェクトを
実行します。... -
ruby 1
. 6 feature (42.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...d>))
サイズが 0 で中身のあるファイル(Linux の /proc ファイルシステムでこ
のような場合があります)が File#read などで読めないバグが修正されまし
た。
p File.open("/proc/#$$/cmdline").read
=> ruby 1.6.7 (2002-03-01) [i586-li......def initialize(obj) @obj = obj end
def []=() @obj = obj end
def []() @obj end
end
module Kernel
def _ptr() Ptr.new(self) end
end
def foo(int)
int[] += 1
end
x = 1._ptr......変数のエイリアスを許さないようにしました。
((<ruby-dev:13287>))
: ((<open3/Open3.popen3>))
終了したプロセスが at_exit を呼ばないようにしました。
(exit を exit! に修正) ((<ruby-dev:13170>))
: ((<SizedQueue>))#pop
以下のコードでデッ...