title: When using Selenium WebDriver and Ruby how do know what browser type i am using?
body: <p>if there is a way to know what kind of browser is running the test?
  I'm planning using it on an if statemente something like this:</p>
  
  <pre><code>if $driver.kind_of? Selenium::WebDriver::Firefox   
    # some code 
  end
  </code></pre>
  
  <p>I have tried it with "instance_of?", "is_a?". And with some modules and classes like Selenium::WebDriver::Firefox::Profile and other.
  May be I'm on the wrong track...</p>