Sha256: 82b6fadb1935d74cb608290043760d51387699d7535fb07fa00bf5dcbc101d4e
Contents?: true
Size: 566 Bytes
Versions: 10
Compression:
Stored size: 566 Bytes
Contents
# Initializes the template. # @return [void] def init sections :header, :box_info, :summary, :overview, :alias_of, :note, :todo, T('tags'), :source end # Renders the alias_of section. # @return [String] Returns the rendered section. def alias_of # 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 = 'Alias of' @alias_of = object.alias_of erb(:alias_of) end
Version data entries
10 entries across 10 versions & 1 rubygems