Stuart Brand wrote:
> Hi all
> 
> I have made a class to return a value of either 1 or 0 depending on 
> conditions, however once it returns the fixnum is converted to an Array?
> 
> 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
> 
> this is an example and not the true code, the principle is there, the 
> basics are that when a value is returned it converts user to an 
> Array?????

That's exactly the reason why we cannot possibly help you here.  The 
code above clearly does not return an array.  Try using "p" to print out 
the result of calling "test" to get an idea what goes wrong.

Kind regards

	robert