Class: PuppetStrings::Yard::CodeObjects::DataTypes

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

Overview

Implements the group for Puppet DataTypes.

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.



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

def self.instance
  super(:puppet_data_types)
end

Instance Method Details

#name(prefix = false) ⇒ String

Gets the display name of the group.

Parameters:

  • prefix (Boolean) (defaults to: false)

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

Returns:

  • (String)

    Returns the display name of the group.



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

def name(prefix = false)
  'Puppet Data Types'
end