Class: PuppetStrings::Markdown::DataType::Function

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

Overview

Generates Markdown for a Puppet Function.

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) ⇒ Function

Returns a new instance of Function.



27
28
29
# File 'lib/puppet-strings/markdown/data_type.rb', line 27

def initialize(registry)
  super(registry, 'data_type_function')
end

Instance Method Details

#renderObject



31
32
33
# File 'lib/puppet-strings/markdown/data_type.rb', line 31

def render
  super('data_type_function.erb')
end

#signatureObject



35
36
37
# File 'lib/puppet-strings/markdown/data_type.rb', line 35

def signature
  @registry[:signature]
end