From c4d92b384dd3f926fa12eb704eeef663a9cb7b66 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Dec 2010 23:52:43 +0000 Subject: more :: prefix elimination This should make things easier on the eyes. --- lib/rainbows/revactor.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/rainbows/revactor.rb') diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb index a181df1..1e4d3b2 100644 --- a/lib/rainbows/revactor.rb +++ b/lib/rainbows/revactor.rb @@ -27,7 +27,7 @@ module Rainbows::Revactor include Rainbows::Base LOCALHOST = Kgio::LOCALHOST - TCP = ::Revactor::TCP::Socket + TCP = Revactor::TCP::Socket # once a client is accepted, it is processed in its entirety here # in 3 easy steps: read request, call app, write app response @@ -73,7 +73,7 @@ module Rainbows::Revactor end write_body(client, body, range) end while alive - rescue ::Revactor::TCP::ReadError + rescue Revactor::TCP::ReadError rescue => e Rainbows::Error.write(io, e) ensure @@ -136,13 +136,13 @@ module Rainbows::Revactor LISTENERS.map do |s| case s when TCPServer - l = ::Revactor::TCP.listen(s, nil) - [ l, T[:tcp_closed, ::Revactor::TCP::Socket], - T[:tcp_connection, l, ::Revactor::TCP::Socket] ] + l = Revactor::TCP.listen(s, nil) + [ l, T[:tcp_closed, Revactor::TCP::Socket], + T[:tcp_connection, l, Revactor::TCP::Socket] ] when UNIXServer - l = ::Revactor::UNIX.listen(s) - [ l, T[:unix_closed, ::Revactor::UNIX::Socket ], - T[:unix_connection, l, ::Revactor::UNIX::Socket] ] + l = Revactor::UNIX.listen(s) + [ l, T[:unix_closed, Revactor::UNIX::Socket ], + T[:unix_connection, l, Revactor::UNIX::Socket] ] end end end -- cgit v1.2.3-24-ge0c7