3. Download IronRuby1.1.1 or later - Codeplex/GitHub Reference the Assemblies Write some code: How to embed Ruby in an app var engine = Ruby.CreateEngine(); engine.Execute (“System::Windows::MessageBox.show‘Hello DDD’”);
4. .Net powered scripting… Load more assemblies for the scripts to play with Pass in references to application objects Write more Ruby – including event driven scripting var engine = Ruby.CreateEngine(); engine.Runtime.LoadAssembly(typeof(SubModel).Assembly); engine.Runtime.Globals.SetVariable(“Model", myModel); engine.Execute(@“ sub = SubModel.newModel.load_something(sub) Model.on_loaded { |whatever| dude(whatever) } ”);
5. User customisable scripts Complex Data Files – e.g. game levels Plugins – e.g. paint+ Wherever functionality might be changed after shipping VBA/ActiveScripting/Automation replacement Enterprise apps? Wheremight it be useful?