class RuboCop::Cop::Style::Documentation
def nodoc_comment?(node, require_all = false)
Note: How end-of-line comments are associated with code changed in
proceeds to check its ancestors for :nodoc: all.
class/module. Unless the element is tagged with :nodoc:, the search
First checks if the :nodoc: comment is associated with the
def nodoc_comment?(node, require_all = false) return false unless node && node.children.first nodoc = nodoc(node) return true if same_line?(nodoc, node) && nodoc?(nodoc, require_all) nodoc_comment?(node.parent, true) end