/** {@inheritDoc} */
public StdioContext getStdioContext() {
Ruby runtime = RuntimeContext.getCurrentRuntime();
if (runtime != null && runtime.getInstanceConfig() instanceof TorqueBoxRubyInstanceConfig) {
TorqueBoxRubyInstanceConfig config = (TorqueBoxRubyInstanceConfig) runtime.getInstanceConfig();
if (config.isInteractive()) {
return debugContext;
}
}
return defaultContext;
}