[Ironruby-core] Range#=== operator
Charles Oliver Nutter
charles.nutter at sun.com
Tue Nov 13 07:57:34 EST 2007
Peter Bacon Darwin wrote:
> Would it be fair to follow this as a general rule: when coding Ruby methods
> in C#, if you are calling code that is exposed as a method or operator in a
> Ruby class or module then invoke it via a DynamicSite, if it is purely
> private code to the C# method then call it directly?
> Pete
There is no hard rule for Ruby; sometimes you are supposed to dispatch
for functionality, sometimes you call directly. There's no one true way
unfortunately.
Of course, as you figure out how different methods work, document that :)
- Charlie
More information about the Ironruby-core
mailing list