I can't get it to work... What am I doing wrong? This is my C# code: namespace IRTests { public class IRTest { private void MyMethod() { Console.WriteLine("Hi from C#"); } } }
And this is the IR console: >>> t = IRTests::IRTest.new => IRTests.IRTest >>> t.my_method :0: undefined method `my_method' for IRTests.IRTest:IRTests::IRTest (NoMethodError) >>> t.method(:my_method) D:\IronRuby\GitRepository\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtins\KernelOps.cs:1437:in `method': undefined method `my_method' for class `IRTests::IRTest' (NameError) from :0 Thanks! Shay. ---------------------------- Shay Friedman http://www.ironshay.com Follow me: http://twitter.com/ironshay -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core