Sha256: bca13d0e4d76683d30610609efbc735845059fcdca05cf6617e9c65c0d2cbe54

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

# Initializes the template.
# @return [void]
def init
  sections :header, :box_info, :summary, :overview, 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 { |c|
    c.statement.parent_class == object.name.to_s
  }
  erb(:box_info)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-strings-2.0.0 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-1.2.1 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-1.2.0 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-1.1.1 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb
puppet-strings-1.1.0 lib/puppet-strings/yard/templates/default/puppet_class/html/setup.rb