D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
TracePoint
/
Filename :
disable-i.ri
back
Copy
U:RDoc::AnyMethod[iI"disable:ETI"TracePoint#disable;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Deactivates the trace.;To:RDoc::Markup::BlankLine o; ; [I".Returns +true+ if the trace was enabled. ;TI"/Returns +false+ if the trace was disabled.;T@o:RDoc::Markup::Verbatim; [ I"trace.enabled? #=> true ;TI"0trace.disable #=> true (previous status) ;TI"trace.enabled? #=> false ;TI"trace.disable #=> false ;T:@format0o; ; [I"RIf a block is given, the trace will only be disabled within the scope of the ;TI"block.;T@o;; [ I"trace.enabled? #=> true ;TI" ;TI"trace.disable do ;TI" trace.enabled? ;TI"& # Only disabled for this block ;TI" end ;TI" ;TI"trace.enabled? #=> true ;T; 0o; ; [I":Note: You cannot access event hooks within the block.;T@o;; [I"#trace.disable { p tp.lineno } ;TI"*#=> RuntimeError: access from outside;T; 0: @fileI"trace_point.rb;T:0@omit_headings_from_table_of_contents_below0I"Ctrace.disable -> true or false trace.disable { block } -> obj ;T0[ I"();T@.FI"TracePoint;TcRDoc::NormalClass00