I want to pick values on runtime

Hi Guys,

I am happy to work on ruby again after a long time.i want little help
from your side.

i want to pick strings values and displays those values on my report or
store in the locale file.

for example:-

1)test123
$1234

2)test123
$12345

3)test123
$1234

i want to capture all the values.i tryed but on the run time values are
changes to its heard for me to pick the values and campare it.

(if the values are constant its easy to compare.)

So guys plz help me i know its not a deficult task for you.but its so
much defecult for me…!!!