From: Robert Klemme Date: 2008-09-01T23:08:36+09:00 Subject: Re: simple, array question! 2008/8/31 Stefano Crocco : > In ruby you don't have to declare a variable (actually, you can't), you just > assign a value to it. For example > > a = [1, 2, 3, 4] > > stores an array containing the elements 1, 2, 3 and 4 to the local variable a. Some additonal note: the [] is an Array constructor. It's a special syntax for creating a new Array instance and appending elements given. This is similar to "", '' and // which are also syntactic sugar for instance creation: irb(main):001:0> String.new => "" irb(main):002:0> "" => "" Kind regards robert -- use.inject do |as, often| as.you_can - without end