about summary refs log tree commit homepage
path: root/lib/rainbows/revactor
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-04 20:39:41 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-04 20:39:41 -0800
commit7246d2f2d1601dbb5486ce7f9ddbebd1bb975b58 (patch)
treefd2c407b4c9bed38fbfc2d586a3c5c905954045a /lib/rainbows/revactor
parente00c2e8c53ad5b47baa5bc6a8765b7c3c92296b9 (diff)
downloadrainbows-7246d2f2d1601dbb5486ce7f9ddbebd1bb975b58.tar.gz
We want to use the singleton methods in Kgio to reduce
conditionals.
Diffstat (limited to 'lib/rainbows/revactor')
-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