From: ueno Date: Thu, 11 Aug 2005 04:10:28 +0000 (+0000) Subject: Moved output() to Server::B. X-Git-Tag: channel-coding-branchpoint~167 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d7ac8c4e60b741957ab964f6300e55a0198fa5b;p=elisp%2Friece.git 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