From: Sean O'Halpin Date: 2005-11-06T23:08:01+09:00 Subject: Re: what does --can't define singleton method-- mean? On 11/6/05, Daniel Sch�le wrote: > irb(main):014:0* class << Complex You're using the wrong syntax here. To re-open a class, just use normal class definition syntax: class Complex def angle arg/Math::PI*180.0 end end However, I would advise you to use a name like 'angle_in_degrees' rather than override a basic function in this way. It will bite you later when you include other libraries that expect angle in radians. Regards, Sean