DRY: dynamic method definition for browser? and browser+version?

The method check_browsers takes a hash with browser name, a regex and an
enumerable for the version numbers.
It defines method as :
browser.firefox?
browser.chrome9?
...