John W Higgins
6/3/2009 4:49:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Wed, Jun 3, 2009 at 9:35 AM, Catsquotl <nope@nothere.nl> wrote:
> Hi
>
>
>
> what i like to do is have an array of the split arrays.
> any ideas?
>
You would want something like this
def create
ary = @txt.collect{ |t| t.split(',') }
end
Basically collect takes your initial array and runs through each element and
creates a new array based on the results of the block.
John