Subject: Re: question about using the Factory Pattern
From: Jason Lillywhite <jason.lillywhite gmail.com>
Date: Sat, 27 Jun 2009 00:20:46 +0900
References: 340237340240
In-reply-to: 340240
>
> Can't you just tell it to?
>
> def base
> self.class.new("#{@value * conversion_factor(@unit)} m")
> end
>
>
> David
I see. That is amazingly simple. Exactly what I need. Thank you very
much!
--
Posted via http://www.ruby-forum.com/.