From: Chris Dutton Date: 2003-09-19T12:16:32+09:00 Subject: Ruby and "old"? I'm just curious as to whether or not there's an eqivalent to an interesting capability from Eiffel. What I'd like to be able to do is something like the following extremely trivial and self-explanatory example: def decrement(n) n -= 1 raise "Whoopsie..." if n != (old n) - 1 end --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003