Sha256: 75bb11888b843fb7a8c5c641134daf1930e757b2c5dbabaa70549db3853c6a97

Contents?: true

Size: 525 Bytes

Versions: 4

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require "<%= config[:namespaced_path] %>/version"
<%- if config[:ext] -%>
require "<%= 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

4 entries across 4 versions & 2 rubygems

Version Path
rubygems-update-3.2.0.rc.2 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.2.0.rc.2 lib/bundler/templates/newgem/lib/newgem.rb.tt
rubygems-update-3.2.0.rc.1 bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt
bundler-2.2.0.rc.1 lib/bundler/templates/newgem/lib/newgem.rb.tt