On 11/6/05, Daniel Sche <uval / rz.uni-karlsruhe.de> 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