From: Matt Mongeau Date: 2013-02-21T05:47:52+09:00 Subject: Re: THE CLASS/OBJECT CHICKEN-AND-EGG PARADOX --047d7b343a7cfbba9504d62dfcf3 Content-Type: text/plain; charset=ISO-8859-1 Maybe you could provide more detail about what you are confused about. To help clarify the second part. Doing class Foo end is similar to doing Foo = Class.new There you can see Foo is an instance of Class. Everything in ruby is object (so to say), so Foo is still an instance of an object. foo = Foo.new This is an instance of Object, but not an instance of Class. Hope this helps. 2013/2/20 Xavier R. > Hi, > > > Anyone out there could help me to understand the "THE CLASS/OBJECT > CHICKEN-AND-EGG PARADOX". I am a newbie to this topic. The more I am > trying to get it making me confused. So anyway to get this one easily. > > > Also another topic making me confused "instance of class" and "instance > of object" - when the second one is pretty clear,but the first one still > not clear. > > Thanks in advance. > > -- > Posted via http://www.ruby-forum.com/. > > --047d7b343a7cfbba9504d62dfcf3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Maybe you could provide more detail about what you are con= fused about. To help clarify the second part.

Doing

class Foo
end

is similar to doing

Foo =3D Class.new<= /div>

There you can see Foo is an instance o= f Class. Everything in ruby is object (so to say), so Foo is still an insta= nce of an object.

foo =3D Foo.new

<= div style>This is an instance of Object, but not an instance of Class.

Hope this helps.


2013/2/20 Xavier R. &l= t;lists@ruby-foru= m.com>
Hi,


Anyone out there could help me to understand the "THE CLASS/OBJECT
CHICKEN-AND-EGG PARADOX". I am a newbie to this topic. The more I am trying to get it making me confused. So anyway to get this one easily.


Also another topic making me confused "instance of class" and &qu= ot;instance
of object" - when the second one is pretty clear,but the first one sti= ll
not clear.

Thanks in advance.

--
Posted via http://= www.ruby-forum.com/.


--047d7b343a7cfbba9504d62dfcf3--