------art_36122_10551572.1171947700702
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 2/20/07, Phy Prabab <phyprabab / yahoo.com> wrote:
>
> umm, perhaps I am doing something wrong:
>
> irb(main):005:0> o.kind_of(0)
> NoMethodError: undefined method `kind_of' for 123:Fixnum
>         from (irb):5
> irb(main):006:0> o.kind_of(1)
> NoMethodError: undefined method `kind_of' for 123:Fixnum
>         from (irb):6
> irb(main):007:0>


methods may have punctuation in ruby.  kind_of?( OBJECT ) uses a question
mark.

It makes it into a question.  Effectively what happens as I understand it is
you ask the object what kind of object are you?

eg

o.kind_of?( Fixnum )

------art_36122_10551572.1171947700702--