yard → rbs-inline

Rewrite YARD type annotations in your codes to rbs-inline.

Usage

Install this gem with the following command.

gem install yard_to_rbs_inline

Then, run the following command to insert rbs-inline comments to your codes.

# Print rewrited code to stdout.
yard_to_rbs_inline --dry-run your-file.rb

# Overwrite files.
yard_to_rbs_inline your-file.rb