C# Class IronRuby.Ruby

Show file Open project: jschementi/iron

Public Methods

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

Private Methods

Method Description
IndexOfRubySetup ( ScriptRuntimeSetup runtimeSetup ) : int

Method Details

CreateEngine() public static method

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
return ScriptEngine

CreateEngine() public static method

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. ///
return ScriptEngine

CreateRubySetup() public static method

Creates IronRuby setup with default language names and file extensions.
public static CreateRubySetup ( ) : LanguageSetup
return LanguageSetup

CreateRubySetup() public static method

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. ///
return LanguageSetup

CreateRuntime() public static method

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
return Microsoft.Scripting.Hosting.ScriptRuntime

CreateRuntime() public static method

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.
return Microsoft.Scripting.Hosting.ScriptRuntime

GetEngine() public static method

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