All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
A block accepting version of the method can be used that does automatic resource cleanup.
f = File.open('file')
File.open('file') do |f| # ... end