From: vincent.fourmond@9online.fr Date: 2006-08-01T20:32:20+09:00 Subject: Re: class is converting fixnum to array!?!
Hello !

> user = 0
>
> puts user.class # -> fixnum
> user = My_class.test(name)
> puts user.class # -> Array
>
>
> class My_class
>
> self.test(name)
> if name == name then
> return 1
> else
> return 0
> end
>
> end
>
> end

There are few things missing in you code, as is, it doesn't run. It tried to modify it, and then I get the expected results (not the ones you point out).

Could you please provide us with a minimum working example ?

Cheers !

Vince