Sha256: 6e1347b45e1862a22900cce16679da6819be167b9c2aa3d32c587186a5899ec7
Contents?: true
Size: 505 Bytes
Versions: 76
Compression:
Stored size: 505 Bytes
Contents
def init sections :header, [T('docstring')] end def format_args(object) return if object.parameters.nil? params = object.parameters if object.has_tag?(:yield) || object.has_tag?(:yieldparam) params.reject! do |param| param[0].to_s[0,1] == "&" && !object.tags(:param).any? {|t| t.name == param[0][1..-1] } end end unless params.empty? args = params.map {|n, v| v ? "<em>#{h n}</em> = #{h v}" : "<em>" + n.to_s + "</em>" }.join(", ") args else "" end end
Version data entries
76 entries across 59 versions & 8 rubygems