From: "Hal E. Fulton" Date: 2001-06-10T11:01:31+09:00 Subject: [ruby-talk:16379] Re: other ways to create class instance? ----- Original Message ----- From: Mirian Crzig Lennox To: ruby-talk ML Sent: Saturday, June 09, 2001 6:33 PM Subject: [ruby-talk:16378] Re: other ways to create class instance? > In article <3B22BD76.3E04270A@objectent.com>, > Samantha Atkins wrote: > >Hi, > > > >I was fooling around with object persistence ideas in Ruby and > >came to a question I haven't found an answer to yet. How can I > >create an instance of a class X without invoking X.new(...)? > >What I need is to be able to create an instance with the right > >plumbing set up and hand set instance variables from data > >retrieved for the persistent form of the object. So how would > >you do that? > > Possibly the marshalling support in Ruby is what you're after. [snip] Yes... also check out the PStore library. Hal