Flowdock
method

autoclose=

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: IO
autoclose=(p1) public

Sets auto-close flag.

f = open("/dev/null")
IO.for_fd(f.fileno)
# ...
f.gets # may cause IOError

f = open("/dev/null")
IO.for_fd(f.fileno).autoclose = true
# ...
f.gets # won't cause IOError
Show source
Register or log in to add new notes.