Sha256: da7e81dee791f6d0e1aa4cacb1d8ad4860f365b63878203d18f2686b830461f6

Contents?: true

Size: 573 Bytes

Versions: 308

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

308 entries across 308 versions & 7 rubygems

Version Path
rubygems-update-3.6.3 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.6.3 lib/bundler/templates/newgem/lib/newgem.rb.tt
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bundler-2.5.5/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.6.2 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.6.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.6.1 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.6.1 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.6.0 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.6.0 lib/bundler/templates/newgem/lib/newgem.rb.tt
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.23 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.23 lib/bundler/templates/newgem/lib/newgem.rb.tt
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.22 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.22 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.21 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.21 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.5.20 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.5.20 lib/bundler/templates/newgem/lib/newgem.rb.tt