From: Dan Zwell Date: 2007-05-26T12:57:27+09:00 Subject: Re: Ruby Math (nPr, nCr) Dan Zwell wrote: > You want an instance method. Just declare it as > def self(r) > and not > def self.nPr(r) Oops. I meant: def nPr(r) Good luck. Dan