Sha256: 06371aaaf2fc6b8a52b033676db5b0482d093fe0a506f6c907978e0d4b178215
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
require "jsduck/meta_tag" require "jsduck/logger" module JsDuck::Tag # Implementation of @since tag. class Since < JsDuck::MetaTag def initialize @name = "since" @key = :since end def to_value(contents) if contents.length > 1 JsDuck::Logger.instance.warn(nil, "Only one @since tag allowed per class/member.") end contents[0] end def to_html(version) <<-EOHTML <p>Available since: <b>#{version}</b></p> EOHTML end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jsduck-4.0.1 | lib/jsduck/tag/since.rb |
jsduck-4.0.0 | lib/jsduck/tag/since.rb |
jsduck-4.0.beta2 | lib/jsduck/tag/since.rb |