Method: Module#namespace_name
- Defined in:
- lib/yard/core_ext/module.rb
permalink #namespace_name ⇒ String
Returns the module namespace path minus the class/module name
16 17 18 |
# File 'lib/yard/core_ext/module.rb', line 16 def namespace_name name.split("::")[0..-2].join("::") end |