I've checked out revision 76 of IronRuby, and finally got it setup in
VS2008 where everything was compiling. For some reason the VS project
file looks for the sub-projects in the wrong locations, and you have
to redirect it to the proper project locations, and reset all the
references.
I thought I would try to hack in a few more of the ruby string
methods, and located the source file in the "MutableStringOps.cs" file
in the IronRuby.Libraries project. I've written the code, but for
some reason, it won't get called. I've cleaned the solution, and
built from scratch. I have a feeling I'm missing something obvious.
I've continued to simplify it until now I have this:
[RubyMethodAttribute("reverse", RubyMethodAttributes.PublicInstance)]
public static MutableString/*!*/ Reverse(MutableString/*!*/ self) {
MutableString result = new MutableString("reverse"); //just temp
return result;
}
When I try calling this method on a string from the ruby console, I
get a NoMethodError. This is driving me crazy. I would really like
to hack this together, and contribute it back, but I'm at my wits end
here. It should work, but it's not.
Sincerely,
Josh
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core