RuboCop::Cop
This cop checks for return from an ensure block.
# File lib/rubocop/cop/lint/ensure_return.rb, line 9 def on_ensure(node) _body, ensure_body = *node return unless ensure_body on_node(:return, ensure_body) do |e| add_offense(e, :expression) end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.