Sha256: 58c99df4212c77ebfe9e1246d24b23772c7adb03a4c8f5d359088e0e53a2dea3
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 Bytes
Contents
<?r base = self[:base] symbol = self[:symbol] documentation = symbol&.documentation if documentation.children? ?> <details open> <summary><h4>Signature</h4></summary> <dl><?r documentation.traverse do |node, descend| node.each do |child| ?><dt> <strong>#{child.directive}</strong><?r case child when Decode::Comment::Parameter ?> <code class="syntax">#{child.name}</code> #{base.linkify(child.type, symbol)}<?r when Decode::Comment::Returns ?> #{base.linkify(child.type, symbol)}<?r when Decode::Comment::Yields ?> <code class="syntax language-#{symbol.language.name}">#{child.block}</code><?r end ?></dt><?r if text = child.text ?><dd>#{base.format(text, symbol)}</dd><?r end if child.children? ?><dd><dl> <?r descend.call(child) ?> </dl></dd><?r end end end ?></dl> </details> <?r end ?>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
utopia-project-0.8.1 | pages/source/_signature.xnode |
utopia-project-0.8.0 | pages/source/_signature.xnode |