How to access toplevel object in ruby, from inside a module that defines the same name

Inside the module, I have a class called Process .

 module M Process= Class.new Process::wait(0) end 

A NoMethodError occurs.

How do I access the top level Process from within the module? Is this possible without abandoning my class?

+6
ruby
source share
1 answer
 ::Process.wait(0) 
+12
source share

All Articles