Re: Alternate initializers or alternate class?
- From: "Sean O'Halpin" <sean.ohalpin@xxxxxxxxx>
- Date: Sat, 15 Jul 2006 20:08:55 +0900
On 7/15/06, transfire@xxxxxxxxx <transfire@xxxxxxxxx> wrote:
+1 - having cake and eating it is a thing devoutly to be wished for ;)
Logan Capaldo wrote:
> The second implemented in terms of the first?
>
> class OrderHash
> def self.auto(*args)
> AutoOrderHash.new(*args)
> end
> end
>
> Yes, please have your cake and eat it too. :)
Hmmm... I like the "taste" of that ;-)
Thanks,
T.
Regards,
Sean
.
- Follow-Ups:
- Re: Alternate initializers or alternate class?
- From: transfire
- Re: Alternate initializers or alternate class?
- References:
- Alternate initializers or alternate class?
- From: transfire
- Re: Alternate initializers or alternate class?
- From: Logan Capaldo
- Re: Alternate initializers or alternate class?
- From: transfire
- Alternate initializers or alternate class?
- Prev by Date: Re: Preferred monkeypatching technique
- Next by Date: Re: Alternate initializers or alternate class?
- Previous by thread: Re: Alternate initializers or alternate class?
- Next by thread: Re: Alternate initializers or alternate class?
- Index(es):
Relevant Pages
|
|