class JsDuck::Tag::Overrides

There is no @overrides tag. Though there is a separate @override tag, this class here has little to do with it.

This here covers the HTML rendering of :overrides field, which gets added to members that override a member in their parent class.

Public Class Methods

new() click to toggle source
# File lib/jsduck/tag/overrides.rb, line 11
def initialize
  @tagname = :overrides
  @html_position = POS_OVERRIDES
end

Public Instance Methods

format(m, formatter) click to toggle source

Generate HTML links from :overrides data.

# File lib/jsduck/tag/overrides.rb, line 17
def format(m, formatter)
  m[:overrides].each do |o|
    label = o[:owner] + "." + o[:name]
    o[:link] = formatter.link(o[:owner], o[:name], label, m[:tagname], m[:static])
  end
end
to_html(m) click to toggle source
# File lib/jsduck/tag/overrides.rb, line 24
def to_html(m)
  "<p>Overrides: " + m[:overrides].map {|o| o[:link] }.join(", ") + "</p>"
end