class Module

Public Instance Methods

namespaces() click to toggle source

Returns an Array with the namespaces to the current Module.

Examples

Aaa::Bbb::Ccc::Ddd.namespaces      #=> ["Aaa", "Bbb", "Ccc", "Ddd"]
# File core_extensions/module.rb, line 9
def namespaces
  name.to_s.split("::")
end