관리-도구
편집 파일: protected_method_defined%3f-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns <tt>true</tt> if the named protected method is defined by <em>mod</em> (or its included modules and, if <em>mod</em> is a class, its ancestors). - !ruby/struct:SM::Flow::VERB body: " module A\n def method1() end\n end\n class B\n protected\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.protected_method_defined? "method1" #=> false\n C.protected_method_defined? "method2" #=> true\n C.method_defined? "method2" #=> true\n" full_name: Module#protected_method_defined? is_singleton: false name: protected_method_defined? params: | mod.protected_method_defined?(symbol) => true or false visibility: public