From: "Victor \"Zverok\" Shepelev" Date: 2007-06-10T16:45:57+09:00 Subject: Re: Overloading Array Subtraction operator From: Nicko [mailto:anko.com@gmail.com] Sent: Sunday, June 10, 2007 10:30 AM > >arraydiff = array1 - array2 >-------------- > >What methods would I have to overload to accomplish this task? I >could not find an example like this anywhere! array1 - array2 is just a shorthand for array1.-(array2) where "-" is normal method name. So, you can just do class Array def -(other) ... end end -- zverok.