Class: PuppetStrings::Markdown::PuppetClass

Inherits:
Base
  • Object
show all
Defined in:
lib/puppet-strings/markdown/puppet_class.rb

Overview

Generates Markdown for a Puppet Class.

Instance Method Summary collapse

Methods inherited from Base

#defaults, #enums, #enums_for_param, #examples, group_name, items, #link, #name, #options, #options_for_param, #params, #private?, #raises, #return_type, #see, #since, #text, #toc_info, #word_wrap, yard_types

Methods included from Helpers

#code_maybe_block

Constructor Details

#initialize(registry) ⇒ PuppetClass

Returns a new instance of PuppetClass.



11
12
13
14
# File 'lib/puppet-strings/markdown/puppet_class.rb', line 11

def initialize(registry)
  @template = 'classes_and_defines.erb'
  super(registry, 'class')
end

Instance Method Details

#renderObject



16
17
18
# File 'lib/puppet-strings/markdown/puppet_class.rb', line 16

def render
  super(@template)
end