Users do not instantiate explicitly. Instead, they can get the instance by parsing
Ruby script by parse method of ScriptingContainer.
| Modifier and Type | Field and Description |
|---|---|
| private final ScriptingContainer | |
| private final ParseResult | |
| private final DynamicScope | |
| private final Script | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | EmbedEvalUnitImpl(ScriptingContainer container, ParseResult parseResult, DynamicScope scope, Script script, boolean wrapExceptions)
|
| Modifier and Type | Method and Description |
|---|---|
| public DynamicScope | Returns: a scope to refer local variablesImplements org. Returns a ManyVarsDynamicScope used to parse a script. |
| public Node | Returns: a root node of parsed Ruby scriptImplements org.
Deprecated
Returns a root node of parsed Ruby script. |
| pack-priv static boolean | |
| public IRubyObject | Returns: results of executing this evaluation unitImplements org. Evaluates a Ruby script, which has been parsed before. |
| container | back to summary |
|---|---|
| private final ScriptingContainer container | |
| parseResult | back to summary |
|---|---|
| private final ParseResult parseResult | |
| scope | back to summary |
|---|---|
| private final DynamicScope scope | |
| script | back to summary |
|---|---|
| private final Script script | |
| wrapExceptions | back to summary |
|---|---|
| private final boolean wrapExceptions | |
| EmbedEvalUnitImpl | back to summary |
|---|---|
| pack-priv EmbedEvalUnitImpl(ScriptingContainer container, ParseResult parseResult, DynamicScope scope, Script script, boolean wrapExceptions) | |
| getLocalVarScope | back to summary |
|---|---|
| public DynamicScope getLocalVarScope() Implements org. Returns a ManyVarsDynamicScope used to parse a script. A returned value is used to inject Ruby's local variable when script is evaluated.
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Implements org. Deprecated
Returns a root node of parsed Ruby script.
| |
| isSharingVariables | back to summary |
|---|---|
| pack-priv static boolean isSharingVariables(ScriptingContainer container) | |
| run | back to summary |
|---|---|
| public IRubyObject run() Implements org. Evaluates a Ruby script, which has been parsed before.
| |