From: hari mahesh Date: 2011-11-22T06:39:05+09:00 Subject: Re: how to call Function argument into another ruby script. Wow...thanks a lot it worked. So my another doubt arises. This was for 2 variables, similarly if i have for eg : #testcase_lib.rb def Name(testcase, module1, module2, final_result) pdf = PDF::Writer.new testcase= $testcase pdf.text $testcase, :font_size => 72, :justification => :center module1= $module1 pdf.text $module1, :font_size => 72, :justification => :center module2= $module2 pdf.text $module2, :font_size => 72, :justification => :center final_result1= $final_result1 pdf.text $final_result1, :font_size => 72, :justification => :center pdf.save_as("chunky.pdf") end Firstly I need to print the Testcase name. Then module 1 will be run and needs to print the module1 result then module2 result and then finally the final result. I have got experience in WATIR but I never used these classes and all in WATIR, It was a real help from u guys and please help me to solve this issue also. -- Posted via http://www.ruby-forum.com/.