Print library version

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

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs