module RubbyCop::Cop::SafeAssignment
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.”
Public Instance Methods
safe_assignment_allowed?()
click to toggle source
# File lib/rubbycop/cop/mixin/safe_assignment.rb, line 15 def safe_assignment_allowed? cop_config['AllowSafeAssignment'] end