module RuboCop::Cop::DocumentationComment
def documentation_comment?(node)
def documentation_comment?(node) preceding_lines = preceding_lines(node) return false unless preceding_comment?(node, preceding_lines.last) preceding_lines.any? do |comment| !annotation?(comment) && !interpreter_directive_comment?(comment) && !rubocop_directive_comment?(comment) end end