U:RDoc::AnyMethod[iI" at_exit:ETI"Kernel#at_exit;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"8Converts _block_ to a +Proc+ object (and therefore ;TI"Hbinds it at the point of call) and registers it for execution when ;TI"Fthe program exits. If multiple handlers are registered, they are ;TI"/executed in reverse order of registration.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [ I"def do_at_exit(str1) ;TI" at_exit { print str1 } ;TI" end ;TI"$at_exit { puts "cruel world" } ;TI"do_at_exit("goodbye ") ;TI" exit ;T: @format0o; ; [I"produces:;T@o; ; [I"goodbye cruel world;T; 0: @fileI"eval_jump.c;T:0@omit_headings_from_table_of_contents_below0I"at_exit { block } -> proc ;T0[I"();T@ FI" Kernel;TcRDoc::NormalModule00