D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Interrupt
/
Filename :
cdesc-Interrupt.ri
back
Copy
U:RDoc::NormalClass[iI"Interrupt:ET@I"SignalException;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"IRaised when the interrupt signal is received, typically because the ;TI"Luser has pressed Control-C (on most posix platforms). As such, it is a ;TI"#subclass of +SignalException+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"begin ;TI". puts "Press ctrl-C when you get bored" ;TI" loop {} ;TI"rescue Interrupt => e ;TI"@ puts "Note: You will typically use Signal.trap instead." ;TI" end ;T:@format0o; ;[I"<em>produces:</em>;T@o;;[I"%Press ctrl-C when you get bored ;T;0o; ;[I"P<em>then waits until it is interrupted with Control-C and then prints:</em>;T@o;;[I"6Note: You will typically use Signal.trap instead.;T;0: @fileI"error.c;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@'I" signal.c;T@EcRDoc::TopLevel