[MacRuby/MacRuby] 4208ec: IO#reopen will be able to reopen when given a file...
12 May
2011
12 May
'11
4:37 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 4208ec40f28d02618d123dec596cef98ca0684f9 https://github.com/MacRuby/MacRuby/commit/4208ec40f28d02618d123dec596cef98ca... Author: Watson <watson1978@gmail.com> Date: 2011-05-11 (Wed, 11 May 2011) Changed paths: M io.c R spec/frozen/tags/macruby/core/argf/closed_tags.txt R spec/frozen/tags/macruby/core/argf/to_io_tags.txt Log Message: ----------- IO#reopen will be able to reopen when given a file path even if receiver was closed. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions f = File.open("/tmp/foo", "w") f.close f.reopen("/tmp/bar", "w") assert_equal("#<File:/tmp/bar>", f.inspect) puts :ok }}}
5294
Age (days ago)
5294
Last active (days ago)
0 comments
1 participants
participants (1)
-
noreply@github.com