From 96cb5c57f82be3cf1727d540f3a561f2c04e0b68 Mon Sep 17 00:00:00 2001 From: ueno Date: Fri, 12 Aug 2005 00:47:15 +0000 Subject: [PATCH] Fixed. --- lisp/server.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/server.rb b/lisp/server.rb index 24f65ee..a176388 100644 --- a/lisp/server.rb +++ b/lisp/server.rb @@ -75,8 +75,8 @@ class Server @out.puts("OK\r\n") Thread.current[:rubyserv_name] = name out = @out - e = Module.new - e.module_eval do + env = Module.new + env.module_eval do @out = out def output(s) @@ -86,7 +86,7 @@ class Server end begin Thread.current[:rubyserv_error] = false - Thread.current[:rubyserv_response] = eval(r, e.module_eval('binding()')) + Thread.current[:rubyserv_response] = eval(r, env.module_eval{binding()}) rescue Exception => e Thread.current[:rubyserv_error] = true Thread.current[:rubyserv_response] = e.to_s.sub(/\A.*?\n/, '') -- 1.7.10.4