From: "Seth E." Date: 2006-10-23T09:41:36+09:00 Subject: Re: Ruby-ize me (or at least my code) Thanks Eero. That is quite an eye-opener, and was exactly what I was looking for. > # I have not actually run this code, just typing out at work ...which probably explains what I am about to ask you, but I thought I would double check Eero Saynatkari wrote: > > # New node with the given data > def new(data, succ = nil) > @data, @succ = data.first, succ > end This should actually be this, right? # New node with the given data def initialize(data, succ = nil) @data, @succ = data, succ end Nonetheless, with a few tweaks your example worked fine, and was quite educational. Thanks again! -- Posted via http://www.ruby-forum.com/.