Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > finalizeライブラリ > Finalizerモジュール

module Finalizer

クラスの継承リスト: Finalizer

要約

オブジェクトが GC される時にメッセージを送る機能を提供します。 このモジュールは obsolete なので、 ObjectSpace.#define_finalizer 等を使用してください。

目次

特異メソッド
add add_dependency delete delete_dependency delete_all_by_dependant delete_all_dependency delete_by_dependant finalize_all finalize_all_by_dependant finalize_all_dependency finalize_by_dependant finalize_dependency safe

特異メソッド

add(obj, dependant, method = :finalize, *options)[permalink][rdoc]
add_dependency(obj, dependant, method = :finalize, *options)
delete(id, dependant, method = :finalize)[permalink][rdoc]
delete_dependency(id, dependant, method = :finalize)
delete_all_by_dependant(dependant)[permalink][rdoc]
delete_all_dependency(id, dependant)[permalink][rdoc]
delete_by_dependant(dependant, method = :finalize)[permalink][rdoc]
finalize_all[permalink][rdoc]
finalize_all_by_dependant(dependant)[permalink][rdoc]
finalize_all_dependency(id, dependant)[permalink][rdoc]
finalize_by_dependant(dependant, method = :finalize)[permalink][rdoc]
finalize_dependency(id, dependant, method = :finalize)[permalink][rdoc]
safe[permalink][rdoc]