Sha256: 5b7004f1152cbb5b615eddf18ea1a12c923a35bff1d78946ee7f82e30d260386
Contents?: true
Size: 736 Bytes
Versions: 20
Compression:
Stored size: 736 Bytes
Contents
require "jsduck/tag/member_tag" require "jsduck/params_merger" module JsDuck::Tag class Event < MemberTag def initialize @pattern = "event" @tagname = :event @member_type = { :title => "Events", :position => MEMBER_POS_EVENT, :icon => File.dirname(__FILE__) + "/icons/event.png" } end # @event name ... def parse_doc(p, pos) { :tagname => :event, :name => p.ident, } end def process_doc(h, tags, pos) h[:name] = tags[0][:name] end def merge(h, docs, code) JsDuck::ParamsMerger.merge(h, docs, code) end def to_html(event, cls) member_link(event) + member_params(event[:params]) end end end
Version data entries
20 entries across 20 versions & 2 rubygems