Method: ForemanPuppet::Puppetclass#module_name
- Defined in:
- app/models/foreman_puppet/puppetclass.rb
#module_name ⇒ Object
returns module name (excluding of the class name) if class separator does not exists (the “::” chars), then returns the whole class name
91 92 93 |
# File 'app/models/foreman_puppet/puppetclass.rb', line 91 def module_name (i = name.index('::')) ? name[0..i - 1] : name end |