From: Brian Candler Date: 2010-04-07T05:09:02+09:00 Subject: Re: Parse the data in an array index in ruby Brk Anl wrote: > Hi, > > I have a array in a class. And i want to parse the data in the array's > index. > I tried split method but it said private method 'split'... Best to show your code, so we don't have to guess. The error suggests you did something like: foo = bar.split where bar is not a String. Unfortunately, all objects inherit Kernel#split, which is only there for legacy reasons (a nasty perlism which splits $_) But you should treat the 'private method' error as meaning 'no such method' -- Posted via http://www.ruby-forum.com/.