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...
精彩评论