Sha256: 5cc4934fd1d633380479726ba0420457d08fdae897f6897775159c4c7b6b10de
Contents?: true
Size: 613 Bytes
Versions: 29
Compression:
Stored size: 613 Bytes
Contents
require "jsduck/tag/tag" require 'jsduck/format/shortener' module JsDuck::Tag # Non-inheritable documentation class Localdoc < Tag def initialize @pattern = "localdoc" @tagname = :localdoc @html_position = POS_LOCALDOC end def parse_doc(p, pos) { :tagname => :localdoc, :doc => :multiline, } end def process_doc(m, tags, pos) m[:localdoc] = tags.map {|t| t[:doc] }.join("\n\n") end def format(m, formatter) m[:localdoc] = formatter.format(m[:localdoc]) end def to_html(m) m[:localdoc] end end end
Version data entries
29 entries across 29 versions & 3 rubygems