Skip to content

Instantly share code, notes, and snippets.

@hotgazpacho
Created June 22, 2010 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotgazpacho/447738 to your computer and use it in GitHub Desktop.
Save hotgazpacho/447738 to your computer and use it in GitHub Desktop.
[RubyClass]
public class Foo {
private MutableString _bar = MutableString.Create("");
[RubyMethod("bar")]
public static MutableString GetBar(RubyContext context, Foo self) {
return self._bar;
}
[RubyMethod("bar=")]
public static MutableString GetBar(RubyContext context, Foo self, MutableString value) {
self._bar = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment