Class: PuppetStrings::Yard::CodeObjects::DefinedTypes

Inherits:
Group
  • Object
show all
Defined in:
lib/puppet-strings/yard/code_objects/defined_type.rb

Overview

Implements the group for Puppet defined types.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Group

#path, #type

Methods inherited from Base

new

Class Method Details

.instanceObject

Gets the singleton instance of the group.

Returns:

  • Returns the singleton instance of the group.



9
10
11
# File 'lib/puppet-strings/yard/code_objects/defined_type.rb', line 9

def self.instance
  super(:puppet_defined_types)
end

Instance Method Details

#name(_prefix = false) ⇒ String

Gets the display name of the group.

Parameters:

  • prefix (Boolean)

    whether to show a prefix. Ignored for Puppet group namespaces.

Returns:

  • (String)

    Returns the display name of the group.



16
17
18
# File 'lib/puppet-strings/yard/code_objects/defined_type.rb', line 16

def name(_prefix = false)
  'Defined Types'
end