From: GOTO Kentaro Date: 2002-09-10T14:11:05+09:00 Subject: Re: Larry Wall's comments on Ruby At Tue, 10 Sep 2002 13:14:16 +0900, Rich Kilmer wrote: > class Numeric > Math.singleton_methods.each do > | meth | > module_eval <<-EOF this line should be: Meth.method(meth).arity == 1 and module_eval <<-EOF > def #{meth} > Math.#{meth}(self) > end > EOF > end > end > > 10 lines...but works with all methods defined in Math (some new ones > added in 1.7). -- Gotoken