Craig Demyanovich
5/21/2008 1:20:00 PM
On Wed, May 21, 2008 at 4:25 AM, ethica1 <Muath.Alkhalaf@gmail.com> wrote:
> just small change as [1..5].each does not work correctly so I may
> change it to [1,2,3,4,5].each
You can use a range instead of an array, e.g., (1..5).each { |n| puts n } .
Craig