From: Kyle Schmitt Date: 2007-10-24T02:30:17+09:00 Subject: Re: Watir and Inheritance Without looking at this too indepth... you are inheriting from Watir::IE, and then making a new instance of it inside of it? Ehh? Start off with changing class Navigator wrote: > I'm trying to do this: > ----------------------------- > require 'Watir' > > class Navigator def initialize(maxim) > @maxim=maxim > @iex=Watir::IE.new > end > def go(url) > @iex.goto(url) > if @maxim==1 then > @iex.maximize() > end > end > end > > naveg=Navigator.new(1) > naveg.go("http://www.google.es") > > puts naveg.url > -------------------------------- > I want my 'naveg' object can display the methods and properties of > wakir, url for example. What am I doing wrong? > -- > Posted via http://www.ruby-forum.com/. > >