From: Arslan Farooq Date: 2013-07-14T02:44:49+09:00 Subject: Re: Module Confusion --20cf307f38d0f776b804e1682eb6 Content-Type: text/plain; charset=UTF-8 Hi, On Sat, Jul 13, 2013 at 9:55 PM, Michael W. wrote: > Okay. Let me try and further explain. With stack.push(obj) I would > understand if it said @stack.push(obj) but that actually breaks the > code. In the add_to_stack method. > > @stack is accessed by a call to the stack method. Meaning stack.push(obj) is calling the stack method to add an item to the instance variable with the same name -- @stack. -- Arslan --20cf307f38d0f776b804e1682eb6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

On Sat, Jul 13, 2013= at 9:55 PM, Michael W. <lists@ruby-forum.com> wrote:
=
Okay. Let me try and further explain. =C2=A0 With stack.push(obj) I would understand if it said @stack.push(obj) but that actually breaks the
code. In the add_to_stack method.


@= stack is accessed by a call to the stack method.

M= eaning stack.push(obj) is calling the stack method to add an item to the in= stance=C2=A0
variable with the same name -- @stack.

-- Ars= lan=C2=A0
--20cf307f38d0f776b804e1682eb6--