Hi --

On Mon, 14 Jul 2008, black eyes wrote:

> I think in ruby now, can't use = for multi-paremeters, which is for
> future version of ruby
>> >>  x = 1, 2
>> => [1, 2]
> the [1, 2] are also only one parameter

You can do:

   x,y = 1,2

to assign both, or

   x, = 1,2

to discard all the ones after x.


David

-- 
Rails training from David A. Black and Ruby Power and Light:
   Intro to Ruby on Rails  July 21-24      Edison, NJ
   Advancing With Rails    August 18-21    Edison, NJ
See http://www.rubypal.com for details and updates!