From: Chris Moore Date: 2001-08-08T14:16:08+09:00 Subject: [ruby-talk:19347] Re: Perl/Python/Ruby common backend (Parrot, can Ruby play too?) > BTW, your trick of attaching functions to the class has its > own brand of magic: > .... > > >>> import math > >>> Spam.cos = math.cos Does that work... I would have thought you had to: import math class Spam def cos(x) return math.cos(x) end end