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

Version Path
solvas-jsduck-6.0.0.30539 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.9571 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.6154 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.4021 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.2554 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.1891 lib/jsduck/tag/localdoc.rb
solvas-jsduck-6.0.0.beta.1888 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.10 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.9 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.8 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.7 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.5 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.4 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.3 lib/jsduck/tag/localdoc.rb
jsduck-troopjs-0.0.1 lib/jsduck/tag/localdoc.rb
jsduck-6.0.0beta lib/jsduck/tag/localdoc.rb
jsduck-5.3.4 lib/jsduck/tag/localdoc.rb
jsduck-5.3.3 lib/jsduck/tag/localdoc.rb
jsduck-5.3.2 lib/jsduck/tag/localdoc.rb
jsduck-5.3.1 lib/jsduck/tag/localdoc.rb