Sha256: b8d07b5f9db1e5af3ee21136903972b961dbcac8a5f2e51b402d10a4da0fd7e4

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

# Initializes the template.
# @return [void]
def init
  sections :header, :box_info, :summary, :overview, :note, :todo, :deprecated, T('tags'), :source
end

# Renders the box_info section.
# @return [String] Returns the rendered section.
def box_info
  @subclasses = Registry.all(:puppet_class).find_all do |c|
    c.statement.parent_class == object.name.to_s
  end
  erb(:box_info)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-strings-4.1.3 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-4.1.2 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-4.1.1 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-4.1.0 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-4.0.0 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-4.0.0.rc.1 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb