Sha256: c24a1e77669be31dd7d14cce20537aab93547c2f2f339cc49ac44034e74b679a

Contents?: true

Size: 618 Bytes

Versions: 62

Compression:

Stored size: 618 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.sub(/^\*+|:$/, '') } %>
<% 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

62 entries across 61 versions & 10 rubygems

Version Path
yard-0.9.25 templates/default/tags/text/option.erb
yard-0.9.24 templates/default/tags/text/option.erb
yard-0.9.23 templates/default/tags/text/option.erb
yard-0.9.22 templates/default/tags/text/option.erb
yard-0.9.21 templates/default/tags/text/option.erb
yard-0.9.20 templates/default/tags/text/option.erb
yard-0.9.19 templates/default/tags/text/option.erb
yard-0.9.16 templates/default/tags/text/option.erb
yard-0.9.15 templates/default/tags/text/option.erb
yard-0.9.14 templates/default/tags/text/option.erb
yard-0.9.13 templates/default/tags/text/option.erb
yard-0.9.12 templates/default/tags/text/option.erb
yard-0.9.11 templates/default/tags/text/option.erb
yard-0.9.10 templates/default/tags/text/option.erb
yard-0.9.9 templates/default/tags/text/option.erb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/templates/default/tags/text/option.erb
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/templates/default/tags/text/option.erb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/templates/default/tags/text/option.erb
yard-0.9.8 templates/default/tags/text/option.erb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/templates/default/tags/text/option.erb