Sha256: da7e81dee791f6d0e1aa4cacb1d8ad4860f365b63878203d18f2686b830461f6

Contents?: true

Size: 573 Bytes

Versions: 299

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require_relative "<%= File.basename(config[:namespaced_path]) %>/version"
<%- if config[:ext] -%>
require_relative "<%= File.basename(config[:namespaced_path]) %>/<%= config[:underscored_name] %>"
<%- end -%>

<%- config[:constant_array].each_with_index do |c, i| -%>
<%= "  " * i %>module <%= c %>
<%- end -%>
<%= "  " * config[:constant_array].size %>class Error < StandardError; end
<%= "  " * config[:constant_array].size %># Your code goes here...
<%- (config[:constant_array].size-1).downto(0) do |i| -%>
<%= "  " * i %>end
<%- end -%>

Version data entries

299 entries across 299 versions & 6 rubygems

Version Path
bundler-2.5.15 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.14 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.14 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.13 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.13 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.12 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.12 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.10 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.10 lib/bundler/templates/newgem/lib/newgem.rb.tt
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.9 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.9 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.8 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.8 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.7 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.7 lib/bundler/templates/newgem/lib/newgem.rb.tt
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.6 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.6 lib/bundler/templates/newgem/lib/newgem.rb.tt
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt