Re-writing a jscript in Ruby

Hi, does anyone have experience in this subject? I might have to re-
write a jscript running on a windows platform to something that can
run under linux. I was thinking of using Ruby but I’m not sure if its
the right tool for the job. Any thoughts? ideas? the script will have
to read information passed from something like Oblix or a cookie.