Sha256: 2701dd8f3bc90426042fcb1ab665bd353ca14466862ea43c3814c7a83a30edb2
Contents?: true
Size: 979 Bytes
Versions: 5
Compression:
Stored size: 979 Bytes
Contents
# Initializes the template. # @return [void] def init sections :header, :box_info, :summary, :overview, T('tags'), :properties, :parameters, :features end # Renders the box_info section. # @return [String] Returns the rendered section. def box_info @providers = PuppetStrings::Yard::CodeObjects::Providers.instance(object.name).children erb(:box_info) end # Renders the properties section. # @return [String] Returns the rendered section. def properties # Properties are the same thing as parameters (from the documentation standpoint), # so reuse the same template but with a different title and data source. @parameters = object.properties || [] @parameters.sort_by! { |p| p.name } @tag_title = 'Properties' erb(:parameters) end # Renders the parameters section. # @return [String] Returns the rendered section. def parameters @parameters = object.parameters || [] @parameters.sort_by! { |p| p.name } @tag_title = 'Parameters' erb(:parameters) end
Version data entries
5 entries across 5 versions & 1 rubygems