From: dkmd_nielsen@... Date: 2006-10-18T23:45:13+09:00 Subject: Re: I don't even know what to ask for Thank you, cryptic name I cannot repeat. "eval" works like a champ. My future has been greatly simplified. dvn Дохая Рыка wrote: > äÏÈÁÑ òÙËÁ wrote: > >> E:\> ruby TemplateList.rb -v -f TemplateList.txt -m updatevalue.rb > > > > Try this > > > > *** Your TemplateList.rb *** > > logicFileName='updatevalue.rb' > > eval(File.new(logicFileName).read) > > testMe('arg1') > > > > > > *** Your updatevalue.rb *** > > def testMe(arg) > > puts "testMe called arg = #{arg}" > > end > > Or the second way: > > logicFileName='updatevalue.rb' > # self, Module or Class object > self.instance_eval(File.new(logicFileName).read) > testMe('asd')