From: Reimer Behrends Date: 2002-09-10T12:53:16+09:00 Subject: Re: Larry Wall's comments on Ruby Hal E. Fulton (hal9000@hypermetrics.com) wrote: [...] > It should be possible to write a little module to mix > in methods into Numeric (I suppose) which would do the > same thing. class Numeric [:sin, :cos, :tan, :log, :log10, :exp, :sqrt].each do | meth | module_eval <<-EOF def #{meth} Math.#{meth}(self) end EOF end end Personally, I still prefer the traditional function notation. Reimer Behrends