Compile Ruby Script

Hi,

Is there a compile option available for IronRuby so that a script could
be compiled and then re-executed repeatedly? The PythonEngine has a
compile option that facilitates that and I’m trying to determine if
IronRuby has an equivalent.

Thanks,

Aaron

Found it:

CompiledCode compiledScript =
scriptScope.Engine.CreateScriptSourceFromString(script).Compile()

Regards,

Aaron

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs