Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RubyEngine"/> class.
        /// </summary>
        public RubyEngine()
        {
            if (_scriptRuntime.IsNull())
            {
                _scriptRuntime  = InitializeIronRuby();
                _shouldShutdown = true;
            }

            Initialize();
        }
Example #2
0
 public void SetStoppable(bool stoppable)
 {
     this.stoppable = stoppable;
     if (stoppable)
     {
         if (!runtime.IsNull())
         {
             runtime.Shutdown();
         }
     }
 }