Hi all,

Is there a good primer anywhere for embedding Ruby?  The only document
I've found is README.EXT, which is more targetted to extensions than
embeddings.

Ideally, I would like to start my program, define some new Ruby
classes and methods to wrap my application logic, then start executing
bits of code at the top level.

However, I can't find an obvious way to respond to Ruby exceptions,
control threads, or to insulate myself from potential loops in the
executed code.

Is there a way to tell Ruby to, say, "execute 10 steps of code and
return the continuation to me".

Thanks,

--Johann