require 'jsduck/table' require 'jsduck/short_params' require 'jsduck/long_params' module JsDuck class MethodTable < Table def initialize(cls, cache={}) super(cls, cache) @type = :method @id = @cls.full_name + "-methods" @title = "Public Methods" @column_title = "Method" @row_class = "method-row" @short_params = ShortParams.new @long_params = LongParams.new(@cls) end def signature_suffix(item) @short_params.render(item[:params]) + " : " + item[:return][:type] end def extra_doc(item) [ "
#{type}