We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
artoo/lib/artoo/adaptors/io/digital_pin.rb
Line 17 in e5e67f6
When you open file in Ruby using File.open with block, file closes automatically.
File.open
File.open(...){ |f| f << something }
You need to close file only if you use open without block. It this case open is just synonym for new
open
new
f = File.open(...) f << something f.close
The text was updated successfully, but these errors were encountered:
No branches or pull requests
artoo/lib/artoo/adaptors/io/digital_pin.rb
Line 17 in e5e67f6
When you open file in Ruby using
File.open
with block, file closes automatically.You need to close file only if you use
open
without block. It this caseopen
is just synonym fornew
The text was updated successfully, but these errors were encountered: