From: Wyss Clemens Date: 2001-04-27T14:10:47+09:00 Subject: [ruby-talk:14296] Re: how change instances class "Henning VON ROSEN" wrote in : >------=_NextPart_000_0000_01C0CE8E.75E08460 >Sorry, din't find it in pickaxe: > >(1) How(if possible) can I change the value of the class attribute? ...what do you mean by "attribute"? > >Say, that a instance at first is known as belonging to a fairly general >class, and when we gather more information, it turns out to belong more >precisely to a subclass. > ...sounds like applying the "strategy"-(or the "state"-) pattern (see GoF-book) might be appropriate here. Regards Clemens