Skip to content

Commit

Permalink
make WaitWritable and WaitReadable symbols
Browse files Browse the repository at this point in the history
This makes them easier to compare with === when used
in case/when statements in Ruby
  • Loading branch information
Eric Wong committed Oct 8, 2010
1 parent 49f0b98 commit c448ad8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/kgio.rb
Expand Up @@ -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'

Expand Down

0 comments on commit c448ad8

Please sign in to comment.