From 0d7ac8c4e60b741957ab964f6300e55a0198fa5b Mon Sep 17 00:00:00 2001 From: ueno Date: Thu, 11 Aug 2005 04:10:28 +0000 Subject: [PATCH] Moved output() to Server::B. --- lisp/server.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/server.rb b/lisp/server.rb index bedca01..7c8122f 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -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 -- 1.7.10.4