From: Nikodemus Siivola Date: 2002-10-28T23:27:04+09:00 Subject: Re: How to invoke === using custom classes and case statements. On Mon, 28 Oct 2002, Khurram wrote: > case a > when 'hello';printf "Blah....\n" > when 'bye' ; printf "Blah....Blah...\n" > else; printf "Blah... Blah... Blah...\n" > end This is equivalent to: if 'hello' === a ... elsif 'bye' === a ... else ... end You see? The case statement uses the argument of the when clause as the receiver. -- Nikodemus