[macruby-changes] [MacRuby/MacRuby] f0d385: IO.pipe will return subclass instances based on re...

noreply at github.com noreply at github.com
Tue May 3 08:59:01 PDT 2011


Branch: refs/heads/master
Home:   https://github.com/MacRuby/MacRuby

Commit: f0d3850988ff33c1d6addcf0f606fa3fdd0b07e9
    https://github.com/MacRuby/MacRuby/commit/f0d3850988ff33c1d6addcf0f606fa3fdd0b07e9
Author: Watson <watson1978 at gmail.com>
Date:   2011-05-03 (Tue, 03 May 2011)

Changed paths:
  M io.c

Log Message:
-----------
IO.pipe will return subclass instances based on receiver.

Test Script:
{{{
require 'test/unit/assertions.rb'
include Test::Unit::Assertions

class SubIO < IO; end

r, w = SubIO.pipe
assert_equal(SubIO, r.class)
assert_equal(SubIO, w.class)

puts :ok
}}}




More information about the macruby-changes mailing list