⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
BasicObject
/
View File Name :
instance_eval-i.ri
U:RDoc::AnyMethod[iI"instance_eval:ETI"BasicObject#instance_eval;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"IEvaluates a string containing Ruby source code, or the given block, ;TI"Ewithin the context of the receiver (_obj_). In order to set the ;TI"8context, the variable +self+ is set to _obj_ while ;TI">the code is executing, giving the code access to _obj_'s ;TI",instance variables and private methods.;To:RDoc::Markup::BlankLine o; ; [I"EWhen <code>instance_eval</code> is given a block, _obj_ is also ;TI",passed in as the block's only argument.;T@o; ; [I"GWhen <code>instance_eval</code> is given a +String+, the optional ;TI"Lsecond and third parameters supply a filename and starting line number ;TI"5that are used when reporting compilation errors.;T@o:RDoc::Markup::Verbatim; [I"class KlassWithSecret ;TI" def initialize ;TI" @secret = 99 ;TI" end ;TI" private ;TI" def the_secret ;TI", "Ssssh! The secret is #{@secret}." ;TI" end ;TI" end ;TI"k = KlassWithSecret.new ;TI"1k.instance_eval { @secret } #=> 99 ;TI"Ik.instance_eval { the_secret } #=> "Ssssh! The secret is 99." ;TI"2k.instance_eval {|obj| obj == self } #=> true;T:@format0: @fileI"vm_eval.c;T:0@omit_headings_from_table_of_contents_below0I"}obj.instance_eval(string [, filename [, lineno]] ) -> obj obj.instance_eval {|obj| block } -> obj ;T0[ I"(*args);T@+FI"BasicObject;TcRDoc::NormalClass00