class JsDuck::Tag::Since

Public Class Methods

new() click to toggle source
# File lib/jsduck/tag/since.rb, line 6
def initialize
  @pattern = "since"
  @tagname = :since
  @html_position = POS_SINCE
end

Public Instance Methods

parse_doc(p, pos) click to toggle source
# File lib/jsduck/tag/since.rb, line 12
def parse_doc(p, pos)
  {
    :tagname => :since,
    :version => p.match(/.*$/).strip,
  }
end
process_doc(h, tags, pos) click to toggle source
# File lib/jsduck/tag/since.rb, line 19
def process_doc(h, tags, pos)
  h[:since] = tags[0][:version]
end
to_html(context) click to toggle source
# File lib/jsduck/tag/since.rb, line 23
    def to_html(context)
      <<-EOHTML
        <p>Available since: <b>#{JsDuck::Util::HTML.escape(context[:since])}</b></p>
      EOHTML
    end