On Mon, Mar 4, 2013 at 6:41 PM, Kumar R. <[email protected]> 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/ -- [email protected] | https://groups.google.com/d/forum/ruby-talk-google?hl=en --- You received this message because you are subscribed to the Google Groups "ruby-talk-google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
