U:RDoc::AnyMethod[iI"method_defined?:ETI"Module#method_defined?;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"6Returns +true+ if the named method is defined by ;TI">_mod_ (or its included modules and, if _mod_ is a class, ;TI"?its ancestors). Public and protected methods are matched. ;TI"/String arguments are converted to symbols.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"module A ;TI" def method1() end ;TI"$ def protected_method1() end ;TI"$ protected :protected_method1 ;TI" end ;TI" class B ;TI" def method2() end ;TI"" def private_method2() end ;TI" private :private_method2 ;TI" end ;TI"class C < B ;TI" include A ;TI" def method3() end ;TI" end ;TI" ;TI"6A.method_defined? :method1 #=> true ;TI"6C.method_defined? "method1" #=> true ;TI"6C.method_defined? "method2" #=> true ;TI"6C.method_defined? "method3" #=> true ;TI"6C.method_defined? "protected_method1" #=> true ;TI"7C.method_defined? "method4" #=> false ;TI"6C.method_defined? "private_method2" #=> false;T: @format0: @fileI"vm_method.c;T:0@omit_headings_from_table_of_contents_below0I"emod.method_defined?(symbol) -> true or false mod.method_defined?(string) -> true or false ;T0[I" (p1);T@*FI" Module;TcRDoc::NormalClass00