⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Object
/
Edit File: method-i.ri
U:RDoc::AnyMethod[iI"method:ETI"Object#method;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"GLooks up the named method as a receiver in <i>obj</i>, returning a;TI"H<code>Method</code> object (or raising <code>NameError</code>). The;TI"H<code>Method</code> object acts as a closure in <i>obj</i>'s object;TI"Ginstance, so instance variables and the value of <code>self</code>;TI"remain available.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Demo ;FI" def initialize(n) ;FI" @iv = n ;FI" end ;FI" def hello() ;FI" "Hello, @iv = #{@iv}" ;FI" end ;FI" end ;FI" ;FI"k = Demo.new(99) ;FI"m = k.method(:hello) ;FI"$m.call #=> "Hello, @iv = 99" ;FI" ;FI"l = Demo.new('Fred') ;FI"m = l.method("hello") ;FI"%m.call #=> "Hello, @iv = Fred";F: @file0I"#obj.method(sym) -> method ;T0[ I" (p1);FI"proc.c;T
Simpan