--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns true if the named private method is defined by _ mod_ (or its included modules and, if mod is a class, its ancestors).
- !ruby/struct:SM::Flow::VERB
body: " module A\n def method1() end\n end\n class B\n private\n def method2() end\n end\n class C < B\n include A\n def method3() end\n end\n\n A.method_defined? :method1 #=> true\n C.private_method_defined? "method1" #=> false\n C.private_method_defined? "method2" #=> true\n C.method_defined? "method2" #=> false\n"
full_name: Module#private_method_defined?
is_singleton: false
name: private_method_defined?
params: |
mod.private_method_defined?(symbol) => true or false
visibility: public