From: "ako..." Date: 2005-12-09T03:22:35+09:00 Subject: Re: code execution from file? i understand abouth threads. i think i am just researching the problem so far. would you explain about Object? i tried this: module A class Object def mymethod(x) puts "#{x} in A" end end code = < fails class Object def mymethod(x) puts "\#{x} in code" end end o = Object.new o.mymethod(p) CODE x = 'x' y = 'y' module T class << self def get_binding(p) binding end end end eval("#{code}", T.get_binding(y)) o = Object.new o.mymethod(x) remove_const :T end