Thanks for sharing the link. Thank you very much.

But here I finally worked it out :

>> foo.class
=> Test
>> "abc".class
=> String
>>  class Test
>>  def initialize()
>>  @m=self
>>  end
>>  def self.show
>>  print "hi"
>>  end
>>  def display
>>  @m.class.show
>>  end
>>  end
=> nil
>> foo = Test.new
=> #<Test:0x0000000121a150 @m=#<Test:0x0000000121a150 ...>>
>> foo.display
hi=> nil
>>


But had a confusion with my first example. For that I have too see that 
you-tube link.

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