On Sat, Jun 25, 2011 at 12:57 AM, Intransition <transfire / gmail.com> 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).