From: Love U Ruby Date: 2013-02-27T02:37:16+09:00 Subject: Re: undefined local variable or method `m' 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 => #> >> 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/.