This cop checks for uses of rescue in its modifier form.
# File lib/rubocop/cop/style/rescue_modifier.rb, line 22 def check(_node, _method_name, _args, body) return unless body case body.type when :rescue ignore_node(body) when :ensure first_child = body.children.first if first_child && first_child.type == :rescue ignore_node(first_child) end end end
Generated with the Darkfish Rdoc Generator 2.