开发者

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

开发者 https://www.devze.com 2023-03-02 13:38 出处:网络
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

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

精彩评论

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