RuboCop::Cop
This cop checks for assignments in the conditions of if/while/until.
# File lib/rubocop/cop/lint/assignment_in_condition.rb, line 12 def on_if(node) check(node) end
# File lib/rubocop/cop/lint/assignment_in_condition.rb, line 20 def on_until(node) check(node) end
# File lib/rubocop/cop/lint/assignment_in_condition.rb, line 16 def on_while(node) check(node) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.