5 May
2011
5 May
'11
12:37 p.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 7250098921c5fc3bb0bb3d701ff5e797dc306670 https://github.com/MacRuby/MacRuby/commit/7250098921c5fc3bb0bb3d701ff5e797dc... Author: Watson <watson1978@gmail.com> Date: 2011-05-05 (Thu, 05 May 2011) Changed paths: M io.c Log Message: ----------- File#initialize will not accept what reinitialize. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions f = open("/tmp/test.txt", "w") assert_raise(RuntimeError) do f.instance_eval { initialize("/tmp/test2.txt", "w") } f.puts "xxxx" end assert_equal("#<File:/tmp/test.txt>", f.inspect) puts :ok }}}