class JsDuck::Tag::Event
Public Class Methods
new()
click to toggle source
# File lib/jsduck/tag/event.rb, line 6 def initialize @pattern = "event" @tagname = :event @member_type = { :title => "Events", :position => MEMBER_POS_EVENT, :icon => File.dirname(__FILE__) + "/icons/event.png" } end
Public Instance Methods
merge(h, docs, code)
click to toggle source
# File lib/jsduck/tag/event.rb, line 28 def merge(h, docs, code) JsDuck::ParamsMerger.merge(h, docs, code) end
parse_doc(p, pos)
click to toggle source
@event name …
# File lib/jsduck/tag/event.rb, line 17 def parse_doc(p, pos) { :tagname => :event, :name => p.ident, } end
process_doc(h, tags, pos)
click to toggle source
# File lib/jsduck/tag/event.rb, line 24 def process_doc(h, tags, pos) h[:name] = tags[0][:name] end
to_html(event, cls)
click to toggle source
# File lib/jsduck/tag/event.rb, line 32 def to_html(event, cls) member_link(event) + member_params(event[:params]) end