class RuboCop::Cop::Style::ModuleFunction

def check_forbidden(nodes)

def check_forbidden(nodes)
  nodes.each do |node|
    yield node if extend_self_node?(node)
    yield node if module_function_node?(node)
  end
end