Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 532 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 532 Bytes

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