class RuboCop::Cop::Lint::RequireParentheses
def on_send(node)
def on_send(node) _receiver, method_name, *args = *node return if parentheses?(node) return if args.empty? if ternary?(args.first) check_ternary(args.first, node) elsif predicate?(method_name) # We're only checking predicate methods. There would be false # positives otherwise. check_send(args.last, node) end end