Sha256: 01c77723f900df5e0f778c63fff8e4e32a5c681278c28ad45f34dc511bac4f67
Contents?: true
Size: 607 Bytes
Versions: 29
Compression:
Stored size: 607 Bytes
Contents
require "jsduck/tag/tag" module JsDuck::Tag class Constructor < Tag def initialize @pattern = "constructor" @tagname = :constructor end # @constructor def parse_doc(p, pos) {:tagname => :constructor, :doc => :multiline} end # The method name will become "constructor" unless a separate # @method tag already supplied the name. def process_doc(h, tags, pos) h[:name] = "constructor" unless h[:name] # Documentation after @constructor is part of the constructor # method top-level docs. h[:doc] += tags[0][:doc] end end end
Version data entries
29 entries across 29 versions & 3 rubygems