From: sto.mar@... Date: 2012-10-03T03:16:30+09:00 Subject: Re: how to read arrary with an array Am 02.10.2012 19:44, schrieb Jan E.: > unknown wrote in post #1078384: >> Some (but not all) of the objects in the array >> have a slice-method for element reference, aka []: > > "slice" is *not* an alias for "[]". What makes you think that? > Maybe only for String and Array. But the code should of course be: array.each do |element| puts element[0] if element.respond_to?(:[]) end --