method
    
    protected_method_defined?
 
  protected_method_defined?(p1)
  public
  Returns true if the named protected method is defined by mod (or its included modules and, if mod is a class, its ancestors).
module A def method1() end end class B protected def method2() end end class C < B include A def method3() end end A.method_defined? :method1 #=> true C.protected_method_defined? "method1" #=> false C.protected_method_defined? "method2" #=> true C.method_defined? "method2" #=> true

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   
   
   
    
 
   
   = protected
 = protected
  