Module: RuboCop::Cop::SafeAssignment

Extended by:
Macros
Included in:
Lint::AssignmentInCondition, RuboCop::Cop::Style::ParenthesesAroundCondition, RuboCop::Cop::Style::TernaryParentheses
Defined in:
lib/rubocop/cop/mixin/safe_assignment.rb

Overview

Common functionality for safe assignment. By safe assignment we mean putting parentheses around an assignment to indicate “I know I’m using an assignment as a condition. It’s not a mistake.”