public class EmbedEvalUnitImpl extends Object implements EmbedEvalUnit
Users do not instantiate explicitly. Instead, they can get the instance by parsing
Ruby script by parse method of ScriptingContainer.
| Constructor and Description |
|---|
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope) |
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope,
Script script) |
| Modifier and Type | Method and Description |
|---|---|
Node |
getNode()
Returns a root node of parsed Ruby script.
|
ManyVarsDynamicScope |
getScope()
Returns a ManyVarsDynamicScope used to parse a script.
|
IRubyObject |
run()
Evaluates a Ruby script, which has been parsed before.
|
public EmbedEvalUnitImpl(ScriptingContainer container, Node node, ManyVarsDynamicScope scope)
public EmbedEvalUnitImpl(ScriptingContainer container, Node node, ManyVarsDynamicScope scope, Script script)
public Node getNode()
getNode in interface EmbedEvalUnitpublic ManyVarsDynamicScope getScope()
getScope in interface EmbedEvalUnitpublic IRubyObject run()
run in interface JavaEmbedUtils.EvalUnitCopyright © 2001-2015 JRuby. All Rights Reserved.