------art_20824_6603119.1164745993844
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

def -@
#do stuff here
end

On 11/28/06, Just Another Victim of the Ambient Morality <
ihatespam / hotmail.com> wrote:
>
>     Okay, so "operator overloading" is wonderfully trivial and natural in
> Ruby but it just occured to me that I have no idea how to change the
> behaviour of prefix operators like negate, "-x", where x is an object...
> How does one do this?
>     Thank you...
>
>
>
>
>


-- 
Mark Van Holstyn
mvanholstyn / gmail.com
http://lotswholetime.com

------art_20824_6603119.1164745993844--