From: Daiki Ueno Date: Thu, 11 Aug 2005 04:10:28 +0000 (+0000) Subject: Moved output() to Server::B. X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=commitdiff_plain;h=b827af9b34980a5181449fa1604efe499fa93c61 Moved output() to Server::B. --- 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