[macruby-changes] [MacRuby/MacRuby] 9e98ae: Kernel.open with pipe will be able to open stream ...
noreply at github.com
noreply at github.com
Wed May 4 06:57:44 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: 9e98aef8f0bdea45b39bf077dc0ba69382509484
https://github.com/MacRuby/MacRuby/commit/9e98aef8f0bdea45b39bf077dc0ba69382509484
Author: Watson <watson1978 at gmail.com>
Date: 2011-05-04 (Wed, 04 May 2011)
Changed paths:
M io.c
Log Message:
-----------
Kernel.open with pipe will be able to open stream to write.
Test Script:
{{{
require 'test/unit/assertions.rb'
include Test::Unit::Assertions
open("| ruby", "r+") do |f|
f.puts "puts 'foo'"
f.close_write
assert_equal("foo\n", f.read)
end
puts :ok
}}}
More information about the macruby-changes
mailing list