C# 클래스 IronRuby.RubyHostingExtensions

파일 보기 프로젝트 열기: jschementi/iron

공개 메소드들

메소드 설명
AddRubySetup ( this runtimeSetup ) : LanguageSetup

Adds a new IronRuby setup into the runtime setup unless already included.

AddRubySetup ( this runtimeSetup, Action newSetupInitializer ) : LanguageSetup

Adds a new IronRuby setup into the given runtime setup unless already included.

GetRubyEngine ( this runtime ) : ScriptEngine

Retrieves an IronRuby engine from this script runtime.

GetRubySetup ( this runtimeSetup ) : LanguageSetup

Retrieves IronRuby setup from the script runtime setup.

RequireFile ( this engine, string path ) : bool

Loads a 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 ( this engine, string path, ScriptScope scope ) : bool

Loads a 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.

메소드 상세

AddRubySetup() 공개 정적인 메소드

Adds a new IronRuby setup into the runtime setup unless already included.
public static AddRubySetup ( this runtimeSetup ) : LanguageSetup
runtimeSetup this The to update.
리턴 LanguageSetup

AddRubySetup() 공개 정적인 메소드

Adds a new IronRuby setup into the given runtime setup unless already included.
public static AddRubySetup ( this runtimeSetup, Action newSetupInitializer ) : LanguageSetup
runtimeSetup this The to update.
newSetupInitializer Action /// If not null, is used to initialize the new IronRuby . ///
리턴 LanguageSetup

GetRubyEngine() 공개 정적인 메소드

Retrieves an IronRuby engine from this script runtime.
/// The is not set up to run IronRuby. /// The doesn't contain IronRuby's . ///
public static GetRubyEngine ( this runtime ) : ScriptEngine
runtime this The runtime to get the engine from.
리턴 ScriptEngine

GetRubySetup() 공개 정적인 메소드

Retrieves IronRuby setup from the script runtime setup.
public static GetRubySetup ( this runtimeSetup ) : LanguageSetup
runtimeSetup this Runtime setup.
리턴 LanguageSetup

RequireFile() 공개 정적인 메소드

Loads a 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 static RequireFile ( this engine, string path ) : bool
engine this The Ruby engine.
path string The path to the file to load.
리턴 bool

RequireFile() 공개 정적인 메소드

Loads a 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 static RequireFile ( this engine, string path, ScriptScope scope ) : bool
engine this The Ruby engine.
path string The path to the file to load.
scope ScriptScope The scope to use for the script execution.
리턴 bool