AaronC81 / sord

Convert YARD docs to Sorbet RBI and Ruby 3/Steep RBS files
https://sord.aaronc.cc
MIT License
299 stars 18 forks source link

Add conversion to RBS built-in duck type interfaces #161

Closed AaronC81 closed 2 years ago

AaronC81 commented 2 years ago

If you're converting to RBS, some duck types like #to_s now get converted to their RBS interfaces like _ToS.

Also took this opportunity to refactor the way configuration gets passed to TypeConverter to make it easier to add more configuration. (Previously TypeConverter wasn't aware of the output type language.)

Fixes #154