class RuboCop::Cop::Style::RedundantParentheses
def keyword_with_redundant_parentheses?(node)
def keyword_with_redundant_parentheses?(node) return false unless node.keyword? return true if node.special_keyword? args = *node if only_begin_arg?(args) parentheses?(args.first) else args.empty? || parentheses?(node) end end