Implementation of org.jruby.javasupport.JavaEmbedUtils.EvalUnit for embeddiing. This class is created when a Ruby script has been parsed. Once parsed, the script is ready to run many times without parsing.
Users do not instantiate explicitly. Instead, they can get the instance by parsing
Ruby script by parse method of ScriptingContainer.
Returns a ManyVarsDynamicScope used to parse a script. A returned value is used to inject Ruby's local variable when script is evaluated.
Returns: a scope to refer local variables
Returns a root node of parsed Ruby script.
Returns: a root node of parsed Ruby script
Evaluates a Ruby script, which has been parsed before.
Returns: results of executing this evaluation unit