Moved output() to Server::B.
authorDaiki Ueno <ueno@unixuser.org>
Thu, 11 Aug 2005 04:10:28 +0000 (04:10 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Thu, 11 Aug 2005 04:10:28 +0000 (04:10 +0000)
lisp/server.rb

index bedca01..7c8122f 100644 (file)
@@ -4,6 +4,10 @@ require 'thread'
 
 class Server
   module B
+    def output(s)
+      puts("# output #{Thread.current[:rubyserv_name]} #{s}\r\n")
+    end
+    module_function :output
   end
 
   def initialize
@@ -120,10 +124,6 @@ class Server
     s.gsub(/%([0-9A-Z][0-9A-Z])/, ['\1'].pack('H*'))
   end
 
-  def output(s)
-    puts("# output #{Thread.current[:rubyserv_name]} #{s}\r\n")
-  end
-
   def send_data(d)
     d = escape(d)
     begin