From: "Kumar R." Date: 2013-03-04T06:59:01+09:00 Subject: Re: Confusion with Ruby's "case/when" block statement Before understanding the `Case/when` working principal let me clear the below which `while` does when it gets its turn. >> String.===("abc") => true Because "abc" is an instance of `String` class. Now I tried the below just to check who is whose super class. >> 10.class => Fixnum >> Fixnum.superclass => Integer >> Integer.superclass => Numeric >> Numeric.superclass => Object Humm. That means the below returns `true` as Fixnum is also the indirect subclass of `Numeric`. >> Numeric.===(10) => true But why then the below outputts contradictory to the above? >> Numeric.===(Fixnum) => false I might be 100% wrong, In that case please correct me. Thanks -- Posted via http://www.ruby-forum.com/.