From: pedro mg Date: 2006-11-07T14:50:06+09:00 Subject: Re: simple mix-in example Em Tue, 07 Nov 2006 04:39:06 +0000, Ken Bloom escreveu: > if test > 1 > puts "Yes" > else > puts "No" > end thanks, this was really just a very simple test in wich i controled the values. > You need to define the > operator as follows: > def >(arg) > puts "Yep!" if @a > arg > @a > arg > end > so that it returns a proper value i didn't even wanted a return value, but you're right, even the simple examples look better with a little more effort ;) -- pedro mg ruby 1.8.4 (2005-12-24) [i486-linux] irb 0.9.5(05/04/13) Linux xubuntu 2.6.17-10-generic #2 SMP i686 GNU/Linux