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

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