Print library version

How could I know in runtime the watir version I'm using?

···

--
Posted via http://www.ruby-forum.com/.

I found out one way to do it:

        gems=`gem list watir`
        puts gems.to_s().scan(/watir \((\d\.\d\.\d)/).to_s()

any other idea to do it?

···

--
Posted via http://www.ruby-forum.com/.