From: "Guy N. Hurst" Date: 2001-03-10T02:15:10+09:00 Subject: [ruby-talk:12338] Re: Math package Mathieu Bouchard wrote: > > why is it Math.sin(42.0) and not (42.0).sin ? > I agree. I can do the following: irb(main):014:0> class Numeric irb(main):015:1> def sin irb(main):016:2> Math::sin(self) irb(main):017:2> end irb(main):018:1> end nil irb(main):019:0> 42.sin -0.9165215479 irb(main):020:0> but I would like to just include the entire Math module into class Numeric. Can't get it to work yet, though. May just have to make a special interfacing module that can be mixed in, which defines each method in Math like this. Guy N. Hurst -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript