Sha256: 8f5f9cfba472ad5c2f2eae60f1757f816eecbd90c96491c025c224d4b014be4d
Contents?: true
Size: 560 Bytes
Versions: 16
Compression:
Stored size: 560 Bytes
Contents
require "jsduck/tag/tag" require 'jsduck/util/html' module JsDuck::Tag class Since < Tag def initialize @pattern = "since" @tagname = :since @html_position = POS_SINCE end def parse_doc(p, pos) { :tagname => :since, :version => p.match(/.*$/).strip, } end def process_doc(h, tags, pos) h[:since] = tags[0][:version] end def to_html(context) <<-EOHTML <p>Available since: <b>#{JsDuck::Util::HTML.escape(context[:since])}</b></p> EOHTML end end end
Version data entries
16 entries across 16 versions & 3 rubygems