Namespaces and modules

Is there any way to include a “top level” module in a nested module of
the same name? Eg:

#v+
module TTT
module Observable
include Observable
end
end

puts TTT::Observable.included_modules
#v-

return nothing.

But if I rename TTT::Observable the above code returns “Observable”.

···


Marek Janukowicz

Moin!

Is there any way to include a “top level” module in a nested module of
the same name?

This works for me:

module TTT
module Observable
include ::Observable
end
end
Greetings,
flgr

Works for me too - thanks!

···

On Sat, 24 May 2003 09:13:34 +0900, Florian Groß wrote:

Is there any way to include a “top level” module in a nested module of
the same name?

This works for me:

module TTT
module Observable
include ::Observable
end
end


Marek Janukowicz