RuboCop::Cop
This cop checks for multi-line ternary op expressions.
# File lib/rubocop/cop/style/multiline_ternary_operator.rb, line 10 def on_if(node) loc = node.loc # discard non-ternary ops return unless loc.respond_to?(:question) add_offense(node, :expression) if loc.line != loc.colon.line end
[Validate]
Generated with the Darkfish Rdoc Generator 2.