Arlen Cuss
10/27/2007 1:43:00 PM
On Sat, 2007-10-27 at 22:21 +0900, JONNALAGADDA Srinivas wrote:
> On 10/27/07, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
> >
> > VM::InstructionSequence.new(source_string)
> >
> > Thank you very much, it worked. I have also been able to 'VM::
> InstructionSequence.compile_file' and subsequently 'eval' the same. Is
> there a way I could dump this to a file, and re-load the same into another
> ruby session?
> Greetings,
> JS
How about..
File.open("something", "w") do |f|
f.write vm_compiled_stuff
end
# later
eval(File.read("vm_compiled"))