3.12.2012 . 13:35 ., Masoud Ahmadi ߧѧڧ:
> This row solved my problem,
>   if op == "Q\n"
> I was not aware of this little new line thing
>
> Cheers everyone
>
if ["Q\n", "q\n"].include?(op)

should work too...

-- 
Regards,

Ivan Cenov
OKTO-7 Co. Bulgaria
imc / okto7.com, i_cenov / botevgrad.com
mobile:+359888761080,
phone:+35972366161, fax:+_35972366262