From: Dave Bass Date: 2008-05-30T06:31:46+09:00 Subject: Re: instance method adding another instance method to the class Raj Singh wrote: > Any one cares to explain how method speaks get defined as an instance > method for Person class. It's not necessary to instantiate Person; changing the last line to Person.speaks also works. This indicates that speak is being defined as a class method. This can be confirmed if you put a "p self" line in: class Person end p = Person.new def p.something def speaks puts 'i speak' p self end end p.something Person.speaks which gives: i speak Person How it works is beyond me though. -- Posted via http://www.ruby-forum.com/.