closed?

ios.closed? รข true or false
Instance Public methods

Returns true if ios is completely closed (for duplex streams, both reader and writer), false otherwise.

f = File.new("testfile")
f.close         #=> nil
f.closed?       #=> true
f = IO.popen("/bin/sh","r+")
f.close_write   #=> nil
f.closed?       #=> false
f.close_read    #=> nil
f.closed?       #=> true
doc_ruby_on_rails
2015-04-13 10:41:21
Comments
Leave a Comment

Please login to continue.