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????? Thanks all Stuart -- Posted via http://www.ruby-forum.com/.