This cop checks for conditions that are not on the same line as if/while/until.
@example
if some_condition do_something end
# File lib/rubocop/cop/lint/condition_position.rb, line 15 def on_if(node) return if node.loc.respond_to?(:question) check(node) end
Generated with the Darkfish Rdoc Generator 2.