include?(p1) public

Returns true if module is included in mod or one of mod’s ancestors.

   module A
   end
   class B
     include A
   end
   class C < B
   end
   B.include?(A)   #=> true
   C.include?(A)   #=> true
   A.include?(A)   #=> false
Show source
Register or log in to add new notes.