[Ironruby-core] How to extend builtin classes?
Krishna Krishnamaneni
kitti.k at gmail.com
Sun Oct 7 02:01:18 EDT 2007
Hi
How do we extend inbuilt classes. For example Float doesn't have *
method implemented. I tried adding this method:
[RubyMethodAttribute("*", RubyMethodAttributes.PublicInstance)]
public static object Multiply(double self, double value)
{
// TODO: overflow
return self * value;
}
but did not work after compilation. It still complains that * method
is not implemented on Float.
Thank you.
--
Regards,
krishna krishnamaneni.
More information about the Ironruby-core
mailing list