[macruby-changes] [MacRuby/MacRuby] 4208ec: IO#reopen will be able to reopen when given a file...
noreply at github.com
noreply at github.com
Wed May 11 21:37:24 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 4208ec40f28d02618d123dec596cef98ca0684f9
https://github.com/MacRuby/MacRuby/commit/4208ec40f28d02618d123dec596cef98ca0684f9
Author: Watson <watson1978 at 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
}}}
More information about the macruby-changes
mailing list