Hi<br><br>I thought I created a ruby module and ruby class but I must be doing something wrong.<br><br>using RubyMethodAttributes=IronRuby.Runtime.RubyMethodAttributes;<br>using RubyModuleDefinition = IronRuby.Runtime.RubyModuleAttribute;<br>
using RubyClassDefinition = IronRuby.Runtime.RubyClassAttribute;<br>using RubyMethodDefinition = IronRuby.Runtime.RubyMethodAttribute;<br><br>namespace IronRubyMvcLibrary.Controllers<br>{<br> [RubyModuleDefinition("IronRubyMvc")]<br>
public static class IronRubyMvcModule<br> {<br> [RubyClassDefinition("Controller", Extends = typeof(RubyController))]<br> public class RubyControllerOps<br> {<br> [RubyMethodDefinition("info", RubyMethodAttributes.PublicInstance)]<br>
public static void Info(RubyController self)<br> {<br> self.ViewData().Add("Platform", "IronRuby Mvc 1.0");<br> }<br> }<br> <br> }<br>}<br>
<br>I then used the classinitgenerator to create an initializer class.<br>But when I require the assembly after compiling I can't get to IronRubyMvc or the class.<br clear="all"><br>Do I need to do something else?<br>
<br>