From: Nuralanur@... Date: 2006-07-23T00:38:52+09:00 Subject: Re: Showing part of an array.... -------------------------------1153582723 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit You can use this function: class Array def show_part if self.length>2 p self[0..2].join(', ')+', ...' else p self.join(', ') end end end .. anbd apply it like this : colors = ["black","white","red","yellow","green"] colors.show_part two_colors = ["black","white"] two_colors.show_part three_colors = ["black","white",'red'] three_colors.show_part Best regards, Axel -------------------------------1153582723--