allow IO(-ish) objects as descriptor arguments
commite60aebdd55da2db78780165656ba8c457ecbeb97
authorEric Wong <normalperson@yhbt.net>
Thu, 27 May 2010 09:35:23 +0000 (27 09:35 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 27 May 2010 09:37:56 +0000 (27 09:37 +0000)
tree75974a7aaf0a495a0d7b6056ef3f6ff26758c1f4
parentdfe29268314ea3fce7e7025ff9536821c6f60c9c
allow IO(-ish) objects as descriptor arguments

This should be more convenient to use than having
to remember to call "fileno" every time...
ext/io_splice/io_splice_ext.c
test/test_io_splice.rb