From: Robert Klemme Date: 2011-06-28T22:01:03+09:00 Subject: Re: Symbol#=== On Tue, Jun 28, 2011 at 2:57 PM, Robert Klemme wrote: > On Sat, Jun 25, 2011 at 9:15 PM, Intransition wrote: >> >> >> On Jun 25, 1:00 pm, Robert Dober wrote: >>> On Sat, Jun 25, 2011 at 7: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? > > Maybe, maybe not...  The two of me can't really agree... :-) P.S.: I believe it must be class Prince ... end again. The name was reverted back to the original. ;-) robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/