Pattern: Redundant begin
block
Issue: -
This rule checks for redundant begin
blocks. Use implicit begin blocks where possible.
# bad
def foo
begin
# main logic goes here
rescue
# failure handling goes here
end
end
# good
def foo
# main logic goes here
rescue
# failure handling goes here
end