PHP 8.2.31
Preview: newgem.rb.tt Size: 494 B
/proc/thread-self/root/opt/alt/ruby26/lib64/ruby/2.6.0/bundler/templates/newgem/lib/newgem.rb.tt

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 -%>

Directory Contents

Dirs: 1 × Files: 1

Name Size Perms Modified Actions
newgem DIR
- drwxr-xr-x 2024-03-03 22:47:32
Edit Download
494 B lrw-r--r-- 2022-04-12 11:50:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).