From: Tobias Reif Date: 2001-11-21T22:58:33+09:00 Subject: [ruby-talk:26015] Re: positive Mark Slagell wrote: > class Numeric > def pos > if self>0 then self else 0 end > end > end > > 10.pos -> 10 > -10.pos -> 0 very nice; I'd like to use that. But how can I p (10-40).pos ? I get " undefined method `pos' for nil (NameError)" ruby 1.6.3 (2001-03-19) [i386-cygwin] Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/