Example #1
0
 public Script(string code, IFileHandler fileHandler)
 {
     _rand        = new Random();
     _environment = new ScriptEnvironment();
     _code        = code;
     _settings    = ScriptSettings.Default;
     _fileHandler = fileHandler;
 }
Example #2
0
 public Script(string code, ScriptSettings settings, IFileHandler fileHandler) : this(code, fileHandler)
 {
     _settings = settings;
 }
Example #3
0
 public Script(string code, ScriptSettings settings) : this(code, settings, new FileHandler())
 {
 }