Skip to content

Commit

Permalink
Merge pull request #663 from yykamei/patch-1
Browse files Browse the repository at this point in the history
Update instructions for defining classes and modules init_new_gem
  • Loading branch information
pocke authored Sep 17, 2024
2 parents ccdc086 + 490c082 commit 7c6844d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/init_new_gem
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ base = Pathname("gems/#{gem_name}/#{version}")

put base / "#{gem_name}.rbs", <<~RBS
# Write the type definition here!
#
# You can write all the definitions in this file,
# or you can split the definitions into multiple files by organizing them into classes or modules.
RBS
put base / "_test/test.rb", <<~RUBY
# Write Ruby code to test the RBS.
Expand Down

0 comments on commit 7c6844d

Please sign in to comment.