This cop checks for rescue blocks targeting the Exception class.
# File lib/rubocop/cop/lint/rescue_exception.rb, line 21 def autocorrect(node) @corrections << lambda do |corrector| corrector.remove( range_with_surrounding_space( node.children.first.children.first.loc.expression, :left ) ) end end
Generated with the Darkfish Rdoc Generator 2.