From: Robert Klemme Date: 2013-03-06T03:45:47+09:00 Subject: Re: Confusion with Ruby's "case/when" block statement On Tue, Mar 5, 2013 at 7:16 PM, Kumar R. wrote: > Robert Klemme wrote in post #1100204: >> On Mon, Mar 4, 2013 at 6:41 PM, Kumar R. wrote: >>> 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? > @Robert - that `is_a?` test actually made me confused. as `when` test > for subclass or instance of or any thing valid . But how `is_a` doing > help to the `while` clause that is my confusion. Yes, you are confused. We were talking about "case ... when" and not "while". Module#is_a? and Module#=== implement the same test. I suggest you get yourself a Ruby tutorial and work through it start to end - including all the exercises. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/