Inspect closed dir

close e$B$5$l$?e(B Dir e$B%$%s%9%?%s%9$re(B inspect e$B$9$k$He(B IOError
e$B$K$J$j$^$9!#e(B

% ./ruby -ve ’
d = Dir.open(".")
d.close
p d’
ruby 1.9.0 (2007-12-19 patchlevel 0) [i686-linux]
-e:4:in inspect': closed directory (IOError) from -e:4:inp’
from -e:4:in `’

1.8 e$B$G$O$J$j$^$;$s$G$7$?!#e(B

% ruby-1.8 -ve ’
d = Dir.open(".")
d.close
p d’
ruby 1.8.6 (2007-12-14 patchlevel 5000) [i686-linux]
#Dir:0xb7dd7ae0

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs