C# Class IronRuby.Hosting.RubyService

Inheritance: System.MarshalByRefObject
Datei anzeigen Open project: jschementi/iron

Public Methods

Method Description
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.

Private Methods

Method Description
RequireFile ( string path, Scope scope ) : bool
RubyService ( RubyContext context, ScriptEngine engine ) : System

Method Details

InitializeLifetimeService() public method

public InitializeLifetimeService ( ) : object
return object

RequireFile() public method

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.
return bool

RequireFile() public method

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.
return bool