On 1/10/07, Vidar Hokstad <vidar.hokstad / gmail.com> wrote: > There are inconsistencies that annoy me with Ruby, though, such as > Math.sin(x) but x.abs x.abs seems to me a convenience method. If you're using irb in math mode or something like this, this might make your functions look prettier: >> module Math >> def abs(x) >> x.send(:abs) >> end >> end => nil >> include Math => Object >> abs(10) => 10 >> abs(-10) => 10 >> abs(-10.2114125) => 10.2114125