Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / Kernel / trace_var-i.ri
Size: Mime:
U:RDoc::AnyMethod[iI"trace_var:ETI"Kernel#trace_var;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"HControls tracing of assignments to global variables. The parameter ;TI"D+symbol+ identifies the variable (as either a string name or a ;TI";symbol identifier). _cmd_ (which may be a string or a ;TI"?+Proc+ object) or block is executed whenever the variable ;TI":is assigned. The block or +Proc+ object receives the ;TI"3variable's new value as a parameter. Also see ;TI"&<code>Kernel::untrace_var</code>.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"8trace_var :$_, proc {|v| puts "$_ is now '#{v}'" }
;TI"$_ = "hello"
;TI"$_ = ' there'
;T:@format0o;
;	[I"<em>produces:</em>;T@o;;	[I"$_ is now 'hello'
;TI"$_ is now ' there';T;
0:
@fileI"eval.c;T:0@omit_headings_from_table_of_contents_below0I"[trace_var(symbol, cmd )             -> nil
trace_var(symbol) {|val| block }    -> nil
;T0[I"(p1, p2 = v2);T@!FI"Kernel;TcRDoc::NormalModule00