about summary refs log tree commit homepage
path: root/lib/rainbows/revactor/client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/revactor/client.rb')
-rw-r--r--lib/rainbows/revactor/client.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rainbows/revactor/client.rb b/lib/rainbows/revactor/client.rb
index 1aabf93..c587589 100644
--- a/lib/rainbows/revactor/client.rb
+++ b/lib/rainbows/revactor/client.rb
@@ -28,10 +28,6 @@ class Rainbows::Revactor::Client
     @client.write(buf)
   end
 
-  def write_nonblock(buf) # only used for errors
-    @client.instance_variable_get(:@_io).write_nonblock(buf)
-  end
-
   def timed_read(buf2)
     buf2.replace(@client.read(*@rd_args))
   end
@@ -41,6 +37,10 @@ class Rainbows::Revactor::Client
                       NULL_IO : IC.new(@ts = TeeSocket.new(@client), hp)
   end
 
+  def to_io
+    @client.instance_variable_get(:@_io)
+  end
+
   def close
     @client.close
     @client = nil