From: Yusuke Endoh Date: 2012-05-25T00:00:26+09:00 Subject: [ruby-core:45215] Re: [ruby-trunk - Bug #6489][Open] A File instance changes its class to IO Hello, 2012/5/24 yimutang (Joey Zhou) > You see, an object(id:80452110) changes its class from File to IO. > Is it ok? FYI: The rdoc of IO#reopen says: * call-seq: * ios.reopen(other_IO) -> ios * ios.reopen(path, mode_str) -> ios * * Reassociates ios with the I/O stream given in * other_IO or to a new stream opened on path. This may * dynamically change the actual class of this stream. -- Yusuke Endoh