Sha256: d148e3c2e057ce317744bdf74818e7a5c636f349d9a2dae2732b22550c200368
Contents?: true
Size: 354 Bytes
Versions: 6
Compression:
Stored size: 354 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "pathname" Dir.glob("lib/**/*.rb") do |rb_file| rbs_file = rb_file.sub(/lib/, "sig").sub(/\.rb$/, ".rbs") next if File.exist?(rbs_file) Pathname(rbs_file).parent.mkpath system "bundle exec rbs prototype rb #{rb_file} > #{rbs_file}", exception: true puts "#{rbs_file} generated." end
Version data entries
6 entries across 6 versions & 1 rubygems