Sha256: fe3d70551db454a66989577abc591460808bb3509c2ea269c088aad6cad760ce
Contents?: true
Size: 668 Bytes
Versions: 30
Compression:
Stored size: 668 Bytes
Contents
require "jsduck/tag/tag" module JsDuck::Tag # There is no @required tag. # Instead the :required attribute is detected after @cfg: # # @cfg {Type} someName (required) # # This class is only used for rendering the required attribute in # HTML documentation, not for detecting it. The detection is done # with custom logic in @cfg and DocAst classes. class Required < Tag def initialize @tagname = :required @signature = {:long => "required", :short => "REQ"} @css = ".signature .required { background-color: #484848 }" # Docs text color end def process_doc(h, docs, pos) h[:required] = true end end end
Version data entries
30 entries across 30 versions & 3 rubygems