Loading lib/jsduck/method_table.rb +8 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,14 @@ module JsDuck end def signature_suffix(item) "() : " + (item[:return] ? (item[:return][:type] || "void") : "void") short_param_list(item) + " : " + (item[:return] ? (item[:return][:type] || "void") : "void") end def short_param_list(item) params = item[:params].collect do |p| (p[:type] || "Object") + " " + (p[:name] || "") end return params.length > 0 ? ("( " + params.join(", ") + " )") : "()" end end Loading Loading
lib/jsduck/method_table.rb +8 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,14 @@ module JsDuck end def signature_suffix(item) "() : " + (item[:return] ? (item[:return][:type] || "void") : "void") short_param_list(item) + " : " + (item[:return] ? (item[:return][:type] || "void") : "void") end def short_param_list(item) params = item[:params].collect do |p| (p[:type] || "Object") + " " + (p[:name] || "") end return params.length > 0 ? ("( " + params.join(", ") + " )") : "()" end end Loading