From: Andrew Gibson Date: 2006-05-02T05:05:35+09:00 Subject: Re: traversal of a tree + block code Ahhh..found my solution: def self.depthFirstTraversal(parent , &block) children = parent.children children.each do |child| block[child] self.depthFirstTraversal(child, &block) end end I'm not familiar with the [] for passing the argument to the proc(?) ... anyone have any comments? -- Posted via http://www.ruby-forum.com/.