Object
Returns an Array with the namespaces to the current Module.
Array
Module
Aaa::Bbb::Ccc::Ddd.namespaces #=> ["Aaa", "Bbb", "Ccc", "Ddd"]
# File core_extensions/module.rb, line 9 def namespaces name.to_s.split("::") end