/// <summary> /// Initializes a new instance of the <see cref="RubyEngine"/> class. /// </summary> public RubyEngine() { if (_scriptRuntime.IsNull()) { _scriptRuntime = InitializeIronRuby(); _shouldShutdown = true; } Initialize(); }
public void SetStoppable(bool stoppable) { this.stoppable = stoppable; if (stoppable) { if (!runtime.IsNull()) { runtime.Shutdown(); } } }