about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2010-10-07 19:55:49 -0700
committerEric Wong <e@yhbt.net>2010-10-07 19:55:49 -0700
commitc448ad898ecb7f354a32a320294da4727fc9af52 (patch)
treeb86f0a9dc04101f753083b98a019aa9399e907c8
parent49f0b98c69f1f0bf637953d0bfc96b764f00ab9b (diff)
downloadkgio-c448ad898ecb7f354a32a320294da4727fc9af52.tar.gz
This makes them easier to compare with === when used
in case/when statements in Ruby
-rw-r--r--lib/kgio.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kgio.rb b/lib/kgio.rb
index ae7eac8..2ff366e 100644
--- a/lib/kgio.rb
+++ b/lib/kgio.rb
@@ -6,15 +6,15 @@ module Kgio
   # Rack (and CGI) servers that also serve HTTP traffic over
   # UNIX domain sockets.
   LOCALHOST = '127.0.0.1'
-end
 
-# Kgio::PipeMethods#kgio_tryread and Kgio::SocketMethods#kgio_tryread will
-# return this constant when waiting for a read is required.
-module Kgio::WaitReadable; end
+  # Kgio::PipeMethods#kgio_tryread and Kgio::SocketMethods#kgio_tryread will
+  # return this constant when waiting for a read is required.
+  WaitReadable = :wait_readable
 
-# PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will
-# return this constant when waiting for a read is required.
-module Kgio::WaitWritable; end
+  # PipeMethods#kgio_trywrite and SocketMethods#kgio_trywrite will
+  # return this constant when waiting for a read is required.
+  WaitWritable = :wait_writable
+end
 
 require 'kgio_ext'