Class: PuppetStrings::Yard::CodeObjects::Providers

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

Overview

Implements the group for Puppet providers.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Group

#path, #type

Methods inherited from Base

new

Class Method Details

.instance(type) ⇒ Object

Gets the singleton instance of the group.

Parameters:

  • type (String)

    The resource type name for the provider.

Returns:

  • Returns the singleton instance of the group.



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

def self.instance(type)
  super(:"puppet_providers_#{type}")
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.



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

def name(_prefix = false)
  'Providers'
end