From: Li Chen Date: 2007-01-10T01:51:35+09:00 Subject: Re: with and without initialize method Stefano Crocco wrote: > The methods you defined are instance methods, i.e they must be called > using > instances of the class as receiver; you can't call them from the class > themselves. You need to call new because new returns an instance of the > class. In the first case, where you don't define initialize, the > initialize > method of the base class (Object) is called. Thanks and it helps. But when I check which methods are available in class Object I can't see initialize there. Do I miss something? Li irb(main):003:0> puts Object.methods{|m|m.to_s}.sort ... id include? included_modules inspect instance_eval instance_method instance_methods instance_of? instance_variable_get instance_variable_set instance_variables is_a? ... => nil -- Posted via http://www.ruby-forum.com/.