Sha256: d48c19a8539d7e77fe2368a0d6d490353ea0ee8790473462d6f8d8af11316c44

Contents?: true

Size: 623 Bytes

Versions: 75

Compression:

Stored size: 623 Bytes

Contents

<% class_namespace_modules.each_with_index do |mod, i| %><%= indent(i) %>module <%= mod %>
<% end %><%= indent(modules_count) %>class <%= component_class.to_s.gsub("::","") %>Preview < Coco::Preview
<%= indent(modules_count + 1) %>def default
<%= indent(modules_count + 2) %>render Coco::<%= zeitwerk_class_name %>.new do
<%= indent(modules_count + 3) %>"<%= component_class.gsub("::Content", "") %> content here"
<%= indent(modules_count + 2) %>end
<%= indent(modules_count + 1) %>end
<%= indent(modules_count) %>end<% class_namespace_modules.each_with_index do |mod, i| %>
<%= indent(modules_count - i - 1) %>end<% end %>

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
coveragebook_components-0.19.10 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.9 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.8 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.7 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.6 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.5 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.4 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.3 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.2 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.1 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.19.0 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.18.8 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.18.7 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.18.0 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.7 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.6 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.5 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.4 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.3 lib/generators/coco/templates/preview.rb.tt
coveragebook_components-0.17.2 lib/generators/coco/templates/preview.rb.tt