From: Richard Lionheart Date: 2004-05-03T02:58:58+09:00 Subject: The code I forgot to include # My idea of how to convert an array of strings to a string with a specified delimiter class MyArrayType1 < Array def [](a) puts "Entering MyArrayType1#[](a) -- calling parent" super a end def to_s s = "" self.each { |x| s += "; " if s.length>0 s += x.to_s } s end end myA1 = MyArrayType1['x1', 'y1'] # uses the Array#[](a) method with an Array argument and sets # myA1 to a reference to a new object of type MyArrayType1 # which is an Array of two strings, 'x1' and 'y1' # with an over-ridden 'to_s' method puts "myA1 = MyArrayType1['x1', 'y1']; puts myA1.to_s ==> " + myA1.to_s # ==> x1; y1 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.665 / Virus Database: 428 - Release Date: 4/30/2004