class RuboCop::Cop::Lint::IneffectiveAccessModifier
def check_send(node, cur_vis)
def check_send(node, cur_vis) if node.access_modifier? && !node.method?(:module_function) @last_access_modifier = node return node.method_name elsif (methods = private_class_method(node)) # don't warn about defs nodes which are followed by a call to # `private_class_method :name` # obviously the programmer knows what they are doing revert_method_uselessness(methods) end cur_vis end