From: Mark Van Holstyn Date: 2006-08-17T23:21:16+09:00 Subject: Re: How to - Change operator behaviour ------=_Part_20165_21836376.1155824474902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline In your example, you would be calling the method '>' on t1... t1.>(t2) You can define > in the class you would like to have your functionality in. class Example def >( other ) #do soem comparison end end On 8/17/06, Henry Savr wrote: > > Dear Ruby gurus: > > I want to write anywhere in my code t1 > t2 and get: > - true if at least one parameter is nil and the other parameter is > Time > - standard comparision result in other case > > > How to do that? > > Thank you > Henry > > -- > Posted via http://www.ruby-forum.com/. > > -- Mark Van Holstyn mvette13@gmail.com http://lotswholetime.com ------=_Part_20165_21836376.1155824474902--