Hi --

> > I found out that I also can use
> > 
> > Complex.class_eval do
> >       def angle
> >               arg / Math::PI * 180
> >       end
> > end
> > 
> > this would "update" the method for all instances of Complex class
> 
> Or:
>
>   def Complex.angle

Whoops -- wrong.  That's actually a way to define the singleton method
on Complex, as discussed later in your post.


David

-- 
David A. Black
dblack / wobblini.net