From: Robert Klemme Date: 2013-03-05T23:40:43+09:00 Subject: Re: Confusion with Ruby's "case/when" block statement On Mon, Mar 4, 2013 at 6:41 PM, Kumar R. wrote: > Actually the below paragraph made me confused: from the link : > http://ruby.about.com/od/control/a/The-Case-Statement.htm > > What Type? > ============== > > A common use for the case statement is to determine the type of the > value and do something different depending on its type. Though this > breaks Ruby's customary duck typing, it's sometimes necessary to get > things done. This works by using the Class#=== (technically, the > Module#===) operator, which tests if the right-hand side is_a? left-hand > side. The syntax is simple and elegant. Now, what do you want to know? Or is everything clear now? Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/