class RuboCop::Cop::Style::NestedTernaryOperator
def remove_parentheses(source)
def remove_parentheses(source) if source.start_with?('(') && source.end_with?(')') source.delete_prefix('(').delete_suffix(')') else source end end
def remove_parentheses(source) if source.start_with?('(') && source.end_with?(')') source.delete_prefix('(').delete_suffix(')') else source end end