C# Класс IronRuby.Ruby

Показать файл Открыть проект

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

Метод Описание
CreateEngine ( ) : ScriptEngine

Creates a new script runtime and returns its IronRuby engine. The configuration of the runtime is loaded from .NET configuration files if available.

Creates a runtime using CreateRuntime() method.

CreateEngine ( Action setupInitializer ) : ScriptEngine

Creates a new script runtime and returns its IronRuby engine. The configuration of the runtime is loaded from .NET configuration files if available.

CreateRubySetup ( ) : LanguageSetup

Creates IronRuby setup with default language names and file extensions.

CreateRubySetup ( Action initializer ) : LanguageSetup

Creates a default IronRuby setup and passes it to the given delegate for initialization.

CreateRuntime ( ) : ScriptRuntime

Creates a new script runtime configured using .NET configuration files. A default IronRuby configuration is added if not found anywhere in the .NET configuration files.

CreateRuntime ( ScriptRuntimeSetup setup ) : ScriptRuntime

Creates a runtime given a runtime setup.

GetEngine ( ScriptRuntime runtime ) : ScriptEngine

Retrieves an IronRuby engine from a given script runtime.

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

Метод Описание
IndexOfRubySetup ( ScriptRuntimeSetup runtimeSetup ) : int

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

CreateEngine() публичный статический Метод

Creates a new script runtime and returns its IronRuby engine. The configuration of the runtime is loaded from .NET configuration files if available.
Creates a runtime using CreateRuntime() method.
public static CreateEngine ( ) : ScriptEngine
Результат ScriptEngine

CreateEngine() публичный статический Метод

Creates a new script runtime and returns its IronRuby engine. The configuration of the runtime is loaded from .NET configuration files if available.
public static CreateEngine ( Action setupInitializer ) : ScriptEngine
setupInitializer Action /// Delegate that receives an instance of IronRuby's loaded from the .NET configuration /// and can set its properties before it is used for runtime configuration. /// If no IronRuby setup information is found in the .NET configuration a default one is created and passed to the initializer. ///
Результат ScriptEngine

CreateRubySetup() публичный статический Метод

Creates IronRuby setup with default language names and file extensions.
public static CreateRubySetup ( ) : LanguageSetup
Результат LanguageSetup

CreateRubySetup() публичный статический Метод

Creates a default IronRuby setup and passes it to the given delegate for initialization.
public static CreateRubySetup ( Action initializer ) : LanguageSetup
initializer Action /// A delegate that receives a fresh instance of IronRuby's /// and can set its properties before it is used for runtime configuration. ///
Результат LanguageSetup

CreateRuntime() публичный статический Метод

Creates a new script runtime configured using .NET configuration files. A default IronRuby configuration is added if not found anywhere in the .NET configuration files.
public static CreateRuntime ( ) : ScriptRuntime
Результат Microsoft.Scripting.Hosting.ScriptRuntime

CreateRuntime() публичный статический Метод

Creates a runtime given a runtime setup.
public static CreateRuntime ( ScriptRuntimeSetup setup ) : ScriptRuntime
setup Microsoft.Scripting.Hosting.ScriptRuntimeSetup The setup to use to configure the runtime. It provides all information that's needed for the runtime initialization.
Результат Microsoft.Scripting.Hosting.ScriptRuntime

GetEngine() публичный статический Метод

Retrieves an IronRuby engine from a given script runtime.
/// The is not set up to run IronRuby. /// The doesn't contain IronRuby's . ///
public static GetEngine ( ScriptRuntime runtime ) : ScriptEngine
runtime Microsoft.Scripting.Hosting.ScriptRuntime The runtime to get the engine from.
Результат ScriptEngine