about summary refs log tree commit homepage
path: root/lib/raindrops/linux.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-15 10:13:15 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-15 10:13:15 -0800
commit489d08233b2ec43353e25f857e3639751f4f529b (patch)
treec96954b9fa0101869c954e45fb106ff936f85a8c /lib/raindrops/linux.rb
parent0344ffd5fa6c4693f5a8351e451c6a0852de81ed (diff)
downloadraindrops-489d08233b2ec43353e25f857e3639751f4f529b.tar.gz
No need to clutter/confuse namespace lookups
Diffstat (limited to 'lib/raindrops/linux.rb')
-rw-r--r--lib/raindrops/linux.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/raindrops/linux.rb b/lib/raindrops/linux.rb
index ba2d975..6b084b0 100644
--- a/lib/raindrops/linux.rb
+++ b/lib/raindrops/linux.rb
@@ -1,6 +1,5 @@
 # -*- encoding: binary -*-
-class Raindrops
-module Linux
+module Raindrops::Linux
 
   # The standard proc path for active UNIX domain sockets, feel free to call
   # String#replace on this if your /proc is mounted in a non-standard location
@@ -27,7 +26,7 @@ module Linux
   # This parses /proc/net/unix as there is no other (known) way
   # to expose Unix domain socket statistics over netlink.
   def unix_listener_stats(paths)
-    rv = Hash.new { |h,k| h[k.freeze] = ListenStats.new(0, 0) }
+    rv = Hash.new { |h,k| h[k.freeze] = Raindrops::ListenStats.new(0, 0) }
     paths = paths.map do |path|
       path = path.dup
       path.force_encoding(Encoding::BINARY) if defined?(Encoding)
@@ -47,8 +46,6 @@ module Linux
 
     rv
   end
-
   module_function :unix_listener_stats
 
-end # Linux
-end # Raindrops
+end # Raindrops::Linux