[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00497] Re: serialization of objects?

From: Shugo Maeda <shugo@...>
Date: 1999-07-15 00:40:32 UTC
List: ruby-talk #497
Hi,

At Wed, 14 Jul 1999 14:12:03 -0600 (MDT),
Michael Hohn <hohn@math.utah.edu> wrote:
> I've noticed the Object.to_s method to get a string from an Object.
> Is there a simple way to restore an entire object hierarchy from a
> string?  For example, given a (non-cyclic) graph structure f,

You can use Marshal module.

>    print file, "%s", f.to_s
     Marshal::dump(f, file)

>    f.from_string_stream file
     f = Marshal::load(f)

For more information, see:

  http://hoyogw.netlab.co.jp/ruby/man-1.3/Marshal.html

Shugo

In This Thread