Pattern: Missing use of resource-cleanup version for method
Issue: -
This rule checks for cases when you could use a block accepting version of a method that does automatic resource cleanup.
# bad
f = File.open('file')
# good
File.open('file') do |f|
...
end