diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-01 11:00:10 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-01 11:00:10 +0900 |
commit | 0b53a8895f143ecc3d97844f5eec685dbd709d85 (patch) | |
tree | edff641a192187de663945dc8e4077990988ca42 /lib/bundler/templates/newgem | |
parent | 9f4bdeb4033c3851a7025bc67052cb5458325849 (diff) |
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd
Diffstat (limited to 'lib/bundler/templates/newgem')
-rw-r--r-- | lib/bundler/templates/newgem/sig/newgem.rbs.tt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/sig/newgem.rbs.tt b/lib/bundler/templates/newgem/sig/newgem.rbs.tt new file mode 100644 index 0000000000..eb7b380bbb --- /dev/null +++ b/lib/bundler/templates/newgem/sig/newgem.rbs.tt @@ -0,0 +1,8 @@ +<%- config[:constant_array].each_with_index do |c, i| -%> +<%= " " * i %>module <%= c %> +<%- end -%> +<%= " " * config[:constant_array].size %>VERSION: String +<%= " " * config[:constant_array].size %># See the writing guide of rbs: https://github.com/ruby/rbs#guides +<%- (config[:constant_array].size-1).downto(0) do |i| -%> +<%= " " * i %>end +<%- end -%> |