Sha256: 14ef8bc2263e8fca62c33e7653f1baa88652f49bcc780c58468a3e20b9f7cd34

Contents?: true

Size: 1.06 KB

Versions: 106

Compression:

Stored size: 1.06 KB

Contents

<% configurable_attributes = object[:configurable_attributes] || [] %>
<% if configurable_attributes.any? %>
<h2>Configuration Summary</h2>
<h3>Configurable attributes</h3>
Configurable attributes for an object in general <code>object</code> can be configured either by using something like
<pre class="code">
  object.configure <%= hl :do %> |c|
    c.some_configurable_attribute = <%= hl 'some value' %>
    c.some_other_configurable_attribute = <%= hl 42 %>
    ...
  <%= hl :end %>
</pre>
or
<pre class="code">
  object.some_configurable_attribute = <%= hl 'some value' %>
</pre>
<h4>Configurable attributes for instances of <%= object %></h4>
<ul>
  <% configurable_attributes.each do |attribute| %>
  <li>
    <code><%= attribute[:attribute] %></code>
    <% if attribute[:lazy_default_value] %>
     - default <code><%= hl attribute[:lazy_default_value] %></code> (evaluated lazily) 
    <% else %>
     - default <code><%= hl attribute[:default_value] %></code>
    <% end %>
    <%= '- ' + attribute[:comments] if attribute[:comments] %>
  </li>
  <% end %>
</ul>
<% end %>

Version data entries

106 entries across 106 versions & 5 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.7.4 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.7.3 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.7.2 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.7.1 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.7.0 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
dragonfly-0.9.15 yard/templates/default/module/html/configuration_summary.erb
dragonfly-0.8.6 yard/templates/default/module/html/configuration_summary.erb
dragonfly-0.9.14 yard/templates/default/module/html/configuration_summary.erb
dragonfly-0.9.13 yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.9 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.8 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.7 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.6 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.5 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.4 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.3 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.2 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.1 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb
classiccms-0.6.0 vendor/bundle/gems/dragonfly-0.9.12/yard/templates/default/module/html/configuration_summary.erb