Checks that operators have space around them, except for ** which should not have surrounding space.
# File lib/rubocop/cop/style/space_around_operators.rb, line 16 def on_if(node) return unless node.loc.respond_to?(:question) check_operator(node.loc.question) check_operator(node.loc.colon) end
# File lib/rubocop/cop/style/space_around_operators.rb, line 12 def on_pair(node) check(node) if node.loc.operator.is?('=>') end
Generated with the Darkfish Rdoc Generator 2.