Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
IRB
/
History
/
//opt/alt/ruby27/share/ri/system/IRB/History/cdesc-History.ri
U:RDoc::NormalClass[iI"History:ETI"IRB::History;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"DRepresents history of results of previously evaluated commands.;To:RDoc::Markup::BlankLine o; ;[I"ZAvailable via <code>__</code> variable, only if <code>IRB.conf[:EVAL_HISTORY]</code> ;TI"Qor <code>IRB::CurrentContext().eval_history</code> is non-nil integer value ;TI"(by default it is +nil+).;T@o; ;[I"Example (in `irb`):;T@o:RDoc::Markup::Verbatim;[I"# Initialize history ;TI"-IRB::CurrentContext().eval_history = 10 ;TI" # => 10 ;TI" ;TI" # Perform some commands... ;TI"1 + 2 ;TI"# => 3 ;TI"puts 'x' ;TI" # x ;TI"# => nil ;TI"raise RuntimeError ;TI"# ...error raised ;TI" ;TI"E# Inspect history (format is "<item number> <evaluated value>": ;TI"__ ;TI"# => 1 10 ;TI"# 2 3 ;TI" # 3 nil ;TI" ;TI"__[1] ;TI"# => 10;T:@format0: @fileI"lib/irb/ext/history.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[ [;[ [;[[I"[];TI"lib/irb/ext/history.rb;T[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[I"lib/irb/ext/history.rb;TI"IRB;TcRDoc::NormalModule