instance method IO#autoclose?

autoclose? -> bool[permalink][rdoc][edit]

auto-close フラグを返します。



IO.open(IO.sysopen("testfile")) do |io|
  io.autoclose?         # => true
  io.autoclose = false
  io.autoclose?         # => false
end

[SEE_ALSO] IO#autoclose=