From: Xavier Noria Date: 2008-08-11T03:25:38+09:00 Subject: Re: why does the initialize method not return the last expression? On Sun, Aug 10, 2008 at 8:07 PM, aidy wrote: > Why is this not the case for the initialize method? > > class Browser > > def initialize > ie ||= Watir::IE.new > end > > end > > ie = Browser.new Because you are not really calling initialize, you are calling new, which is a different method. So you need to apply your reasoning to #new. new is a wrapper around initialize that returns an instance of the class Browser, no matter what initialize returned.