Skip to content

Instantly share code, notes, and snippets.

@jdee
Created June 17, 2010 21:55
Show Gist options
  • Save jdee/442851 to your computer and use it in GitHub Desktop.
Save jdee/442851 to your computer and use it in GitHub Desktop.
jdee@fatman:~/github/csinitiative/tickdb/control$ irb
irb(main):001:0> f = File.open '/tmp/abc', 'a'
=> #<File:/tmp/abc>
irb(main):002:0> f.close
=> nil
irb(main):003:0> f.close
IOError: closed stream
from (irb):3:in `close'
from (irb):3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment