Shopify / constant_resolver

Resolve a partially qualified Ruby constant reference to the fully qualified name and the path of the file defining it.
MIT License
26 stars 10 forks source link

Handle acronyms #4

Closed exterm closed 5 years ago

exterm commented 5 years ago

This will not work, because it assumes there is no collisions between autoloaded and eagerloaded code.

e.g. if ApiClient is autoloaded and there is an eager loaded constant named APIClient, both will be resolved to the autoloaded api_client.rb file.