inheritance fail.

Hi guys, I'm building a class that handles functions for both IE and FF. The trubble is that when I pass a class (e.g. for IE), I can't use normal functionality. A wee example below. the browser.goto("") command fails.

class BIE <IE   def initialize     #@ff =     #@IE =     @strBrowserType = 'IE'     @browser ||=; @browser.speed = :fast     puts "new IE instance"   end

  def talk     puts "talking IE"   end

  def ggoto(url)     @browser.goto(url)   end end

class Browser

  def initialize     #@browserIE = new BIE     #@browserFF = new BFF     @strBType = "FF"

    #@browserIE.retrieveSettings()     #@strBType = @browserIE.getBrowserType()   end

   def BrowserChoice()     # case select       # what browser in start.xls     # end     puts "in browserchoice"      test =

     return test    end


#option 1   b =   browser = b.BrowserChoice   browser.goto("")