From: sto.mar@... Date: 2013-02-25T04:38:08+09:00 Subject: Re: Why class returning its own name when "include" statement? Am 23.02.2013 09:20, schrieb Love U Ruby: > @Stefano Yes you are right. The below code is proved that. > > ********************************************************* > module Show > def show_string > p "hi" > end > end > # => nil > class Foo > @x=12 > (include Show).object_id > end > # => 10681980 > class Too > @x=12 > (include Show).object_id.inspect > end > # => "10648020" > ********************************************************* > > Does that mean @x has been already initialized? or curious to know what > "10648020" contains into it? It's useless to ask these kind of "academic", pointless questions as long as you do not even have the most basic knowledge about how to properly define a class with an instance variable. Read for example this: http://pine.fm/LearnToProgram/ Read it from beginning to end, do *all* the exercises. After that, choose a programming project to work on, something with a purpose. Then ask questions about how to achieve your goal. --