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
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
yard-0.9.37 templates/default/tags/text/option.erb
kinetic_sdk-5.0.27 gems/yard-0.9.36/templates/default/tags/text/option.erb
kinetic_sdk-5.0.26 gems/yard-0.9.36/templates/default/tags/text/option.erb
kinetic_sdk-5.0.25 gems/yard-0.9.25/templates/default/tags/text/option.erb
kinetic_sdk-5.0.24 gems/yard-0.9.25/templates/default/tags/text/option.erb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
yard-0.9.36 templates/default/tags/text/option.erb
yard-0.9.35 templates/default/tags/text/option.erb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
kinetic_sdk-5.0.23 gems/yard-0.9.25/templates/default/tags/text/option.erb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/yard-0.9.34/templates/default/tags/text/option.erb
kinetic_sdk-5.0.22 gems/yard-0.9.25/templates/default/tags/text/option.erb
kinetic_sdk-5.0.21 gems/yard-0.9.25/templates/default/tags/text/option.erb
yard-0.9.34 templates/default/tags/text/option.erb
yard-0.9.33 templates/default/tags/text/option.erb
yard-0.9.32 templates/default/tags/text/option.erb