public class EmbedEvalUnitImpl extends java.lang.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 EmbedEvalUnit
public ManyVarsDynamicScope getScope()
getScope
in interface EmbedEvalUnit
public IRubyObject run()
run
in interface JavaEmbedUtils.EvalUnit
Copyright © 2001-2020 JRuby. All Rights Reserved.