C# Класс IronRuby.Hosting.RubyService

Наследование: System.MarshalByRefObject
Показать файл Открыть проект

Открытые методы

Метод Описание
InitializeLifetimeService ( ) : object
RequireFile ( string path ) : bool

Loads a given script file using the semantics of Kernel#require method.

If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively.

RequireFile ( string path, ScriptScope scope ) : bool

Loads a given script file using the semantics of Kernel#require method. The script is executed within the context of a given ScriptScope.

If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively.

Приватные методы

Метод Описание
RequireFile ( string path, Scope scope ) : bool
RubyService ( RubyContext context, ScriptEngine engine ) : System

Описание методов

InitializeLifetimeService() публичный Метод

public InitializeLifetimeService ( ) : object
Результат object

RequireFile() публичный Метод

Loads a given script file using the semantics of Kernel#require method.
If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively.
public RequireFile ( string path ) : bool
path string The path to the file to load.
Результат bool

RequireFile() публичный Метод

Loads a given script file using the semantics of Kernel#require method. The script is executed within the context of a given ScriptScope.
If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively.
public RequireFile ( string path, ScriptScope scope ) : bool
path string The path to the file to load.
scope ScriptScope The scope to use for the script execution.
Результат bool