Class: PuppetStrings::Yard::CodeObjects::Tasks

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

Overview

Implements the group for Puppet tasks.

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.



7
8
9
# File 'lib/puppet-strings/yard/code_objects/task.rb', line 7

def self.instance
  super(:puppet_tasks)
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.

Returns:

  • (String)

    Returns the display name of the group.



14
15
16
# File 'lib/puppet-strings/yard/code_objects/task.rb', line 14

def name(prefix = false)
  'Puppet Tasks'
end