Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Created September 10, 2010 04:06
Show Gist options
  • Save amatsuda/573070 to your computer and use it in GitHub Desktop.
Save amatsuda/573070 to your computer and use it in GitHub Desktop.
`touch some_file`
f = File.open("some_file",'w')
f.write "Stuff"
`rm some_file`
# Why is there no errors ?
puts f.flush.inspect
puts f.close.inspect
# via: @kirillrdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment