Pattern: Use of END
block
Issue: -
This rule checks for END
blocks. Use Kernel#at_exit
instead.
# bad
END { puts 'Goodbye!' }
# good
at_exit { puts 'Goodbye!' }
Pattern: Use of END
block
Issue: -
This rule checks for END
blocks. Use Kernel#at_exit
instead.
# bad
END { puts 'Goodbye!' }
# good
at_exit { puts 'Goodbye!' }