开发者

Why is the Profiler module in Ruby 1.9 named with two trailing underscores?

I looked through the standard library and Profiler__ is the only module I can find that uses two underscor开发者_如何学JAVAes in the name like that. Is there a reason?


Because in the Ruby core GC has a Profiler class.

GC::Profiler

Profiler

This is the only reason I can think of. I don't really see a reason why though, as the Profiler class in the Ruby core is "namespaced" under the GC module...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜