From: Josh Cheek Date: 2011-06-25T15:27:55+09:00 Subject: Re: Symbol#=== --bcaec54ee92009fe9a04a6836b4b Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jun 25, 2011 at 12:57 AM, Intransition wrote: > As: > > class Symbol > def ===(object) > object.respond_to?(self) > end > end > > Then: > > case foo > when :some_method > foo.some_method > end > > Insanity? > > I suppose it is indicative of how case statements were thought about during their conception (ie not replacements for if statements, but rather for making apis more robust). --bcaec54ee92009fe9a04a6836b4b--