Sha256: 08ea192403ebc4fab4677256d6b3f643c7299d920461ddb3e26c67e1b5a74849
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
require 'jsduck/table' require 'jsduck/short_params' require 'jsduck/long_params' module JsDuck class EventTable < Table def initialize(cls, cache={}) super(cls, cache) @type = :event @id = @cls.full_name + "-events" @title = "Public Events" @column_title = "Event" @row_class = "method-row" @short_params = ShortParams.new @long_params = LongParams.new(@cls) end def signature_suffix(item) " : " + @short_params.render(item[:params]) end def extra_doc(item) [ "<div class='mdetail-params'>", "<strong style='font-weight: normal;'>Listeners will be called with the following arguments:</strong>", @long_params.render(item[:params]), "</div>" ].join("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsduck-0.3 | lib/jsduck/event_table.rb |