Hi,
I’m learning Ruby from the pickaxe book and I’m using the IRB to try
out examples. I’d like to know if it is possible to save to disk the
IRB session so that when I come back I can load up a session to the
state it was in before. Is this possible?
Thanks,
Matt
Matthew C. [email protected] wrote:
Hi,
I’m learning Ruby from the pickaxe book and I’m using the IRB to try
out examples. I’d like to know if it is possible to save to disk the
IRB session so that when I come back I can load up a session to the
state it was in before. Is this possible?
I do not think so. You certainly can store objects to disk (using
Marshal
or Yaml) but then you would still be missing a lot info (local
variables,
files to require etc.)
If you are on a Unix a workaround might be to use screen.
Kind regards
robert