From: Mickael Faivre-Macon Date: 2005-11-26T03:04:13+09:00 Subject: Re: Tree class Hi Brian, > The question should be what you want to do with your tree. You should > pick a datastructure suitable for your problem, there is no tree per > se. It depends on which pointers you need and which structure your > tree should have. My question was simple, the concept of tree is simple too, I don't want to over complicate the problem. I must assume that there is no generic tree implementation in Ruby avalaible right now. Okay. > If you just want nodes with children try this "reference implementation" > > --- > class Node > attr_reader :children > > def initialize > @children = [] > end > end > --- > > which may or may not suit your needs. Sure, this is a good start. I can start by using this. I was wondering if I had to reinvent the wheel or not. I guess I have to. Mickael.