Sha256: f0cf0b98234324ab22798b58fc284eedfdb0510451d9d7f5f3547ccff576f485
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
### `<%= name %>` #### `<%= signature %>` <% if text -%> <%= text %> <% elsif summary -%> <%= summary %> <% else -%> <%= "The #{name} function." %> <% end -%> <% if note -%> * **Note** <%= note %> <% end -%> <% if return_type -%> Returns: `<%= return_type %>`<% if return_val %> <%= return_val %><% end %> <% end -%> <% if raises -%> Raises: <% raises.each do |r| -%> * <%= error_type(r[:text]) %> <%= error_text(r[:text]) %> <% end -%> <% end -%> <% if examples -%> ##### Examples <% examples.each do |eg| -%> ###### <%= eg[:name] %> ```puppet <%= eg[:text] %> ``` <% end -%> <% end -%> <% if params -%> <% params.each do |param| -%> ##### `<%= param[:name] %>` Data type: `<%= param[:types][0] %>` <%= param[:text] %> <% if options_for_param(param[:name]) -%> Options: <% options_for_param(param[:name]).each do |o| -%> * **<%= o[:opt_name] %>** `<%= o[:opt_types][0] %>`: <%= o[:opt_text] %> <% end -%> <% end -%> <% if enums_for_param(param[:name]) -%> Options: <% enums_for_param(param[:name]).each do |e| -%> * **<%= e[:opt_name] %>**: <%= e[:opt_text] %> <% end -%> <% end -%> <% end -%> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-strings-2.5.0 | lib/puppet-strings/markdown/templates/data_type_function.erb |