* riece-ruby.el (riece-ruby-server-program): Follow the filename
change.
2005-08-11 Daiki Ueno <ueno@unixuser.org>
- * server.rb: Renamed from rubyserv.rb.
+ * server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/.
* riece-ruby.el (riece-ruby-server-program): Follow the filename
change.
require 'thread'
-class RubyServ
- module C
+class Server
+ module B
end
def initialize
Thread.current[:rubyserv_name] = name
begin
Thread.current[:rubyserv_error] = false
- Thread.current[:rubyserv_response] = eval(r, C.module_eval('binding()'))
+ Thread.current[:rubyserv_response] = eval(r, B.module_eval('binding()'))
rescue Exception => e
Thread.current[:rubyserv_error] = true
Thread.current[:rubyserv_response] = e
end
if $0 == __FILE__
- serv = RubyServ.new
+ server = Server.new
while gets
- serv.dispatch($_)
+ server.dispatch($_)
end
end