From 15631717fce044fbad2f386a7b1c7daf4bdd83d2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Oct 2010 16:25:39 -0700 Subject: code shuffling for kgio Despite the large number of changes, most of it is code movement here. --- lib/rainbows/fiber/io/compat.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/rainbows/fiber/io/compat.rb (limited to 'lib/rainbows/fiber/io/compat.rb') diff --git a/lib/rainbows/fiber/io/compat.rb b/lib/rainbows/fiber/io/compat.rb new file mode 100644 index 0000000..2aaf416 --- /dev/null +++ b/lib/rainbows/fiber/io/compat.rb @@ -0,0 +1,10 @@ +# -*- encoding: binary -*- +module Rainbows::Fiber::IO::Compat + def initialize(io, fiber = Fiber.current) + @to_io, @f = io, fiber + end + + def close + @to_io.close + end +end -- cgit v1.2.3-24-ge0c7