Sha256: bd07cfd7709bffdd49b1f40318340bb3d65b149c51ed5b51a3fa4833235b182a
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
<% if object.has_tag?(:option) %> <% object.parameters.each do |param, default| %> <% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s } %> <% next if tags.empty? %> Options Hash (<%= param %>): --------------<%= hr(param.to_s.length) %>-- <% for tag in tags %> <% text = "" %> <% text += format_types(tag.pair.types || ['Object']) %> <% text += " " + tag.pair.name.to_s %> <% if tag.pair.defaults %> <% text += " - default: " + tag.pair.defaults.join(", ") %> <% end %> <% text += " - " + tag.pair.text if tag.pair.text %> <%= indent(wrap(text)) %> <% end %> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deg-yard-0.8.7.4 | templates/default/tags/text/option.erb |
deg-yard-0.8.7.3 | templates/default/tags/text/option.erb |
deg-yard-0.8.7.1 | templates/default/tags/text/option.erb |