Sha256: 2f3742407a5c61ea3ce6e43514558b49341ead7704350717b47420605fb76cc5

Contents?: true

Size: 428 Bytes

Versions: 13

Compression:

Stored size: 428 Bytes

Contents

# Initializes the template.
# @return [void]
def init
  sections :header, :box_info, T('tags'), :overview, :input, :parameters
end

def json
  object.statement.json
end

def description
  json['description']
end

# Renders the parameters section.
# @return [String] Returns the rendered section.
def parameters
  @parameters = json['parameters'] || []
  @parameters.to_a.sort!
  @tag_title = 'Parameters'
  erb(:parameters)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
puppet-strings-3.0.1 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-3.0.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.9.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.8.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.7.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.6.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.5.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.4.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.3.1 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.3.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.2.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.1.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb
puppet-strings-2.0.0 lib/puppet-strings/yard/templates/default/puppet_task/html/setup.rb