From: Michael Linfield Date: 2009-10-27T05:03:45+09:00 Subject: Re: Array#collect in a method call, not working for me > But does that mean that (a = [1, 2].class) is setting a to be an Array? Consider this: >> n = [] => [] >> a = n.class => Array >> a << 1 NoMethodError: undefined method `<<' for Array:Class a doesn't become an array, it becomes the class type of Array. Regards, - Mac -- Posted via http://www.ruby-forum.com/.