Skip to content

tomoasleep/yard_to_rbs_inline

Repository files navigation

yard → rbs-inline

Insert rbs-inline comments from YARD type annotations in your codes.

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

Examples

See: examples

About

Insert rbs-inline comments from YARD type annotations.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published