def find_class_comment(class_name, class_meth)
#      puts "find_class_comment(#{class_name}, #{class_meth.extend_name})"
      comment = nil
      if @body =~ %r{((?>/\*.*?\*/\s+))
                     %extend\s+#{class_meth.extend_name}\s*\{}xm
        comment = $1
      elsif @body =~ %r{Document-(class|module):\s#{class_name}\s*?\n((?>.*?\*/))}m
        comment = $2
      end
      class_meth.comment = mangle_comment(comment) if comment
    end
def find_class_comment(class_name, class_meth)
#      puts "find_class_comment(#{class_name}, #{class_meth.extend_name})"
      comment = nil
      if @body =~ %r{((?>/\*.*?\*/\s+))
                     %extend\s+#{class_meth.extend_name}\s*\{}xm
        comment = $1
      elsif @body =~ %r{Document-(class|module):\s#{class_name}\s*?\n((?>.*?\*/))}m
        comment = $2
      end
      class_meth.comment = mangle_comment(comment) if comment
    end
Look for class or module documentation above %extend +class_name+
 in a Document-class +class_name+ (or module) comment or above an
 rb_define_class (or module).  If a comment is supplied above a matching
 Init_ and a rb_define_class the Init_ comment is used.

   /*
    * This is a comment for Foo
    */
   %extend Foo {
     ...
   }