Is there a way to manipulate the component key that is generated by auto_registrar?
…given a class that is in a deep directory structure…
# lib/company/project/interactors/users/some_worker.rb module Company::Project::Interactors::Users class SomeWorker ... end end
The key becomes quite long and I would like to possibly match for a pattern and replace it. Like for the above, any component identifiers with “company.project.interactors.users.someworker” would be replaced simply with “interactors”. …so for the above it would be “interactors.users.someworker”
What would be the best approach here?
I see there is a AutoRegistrar class, would I have to supply my own version of this or is there a better way? Maybe somewhere else, as I see the component should already have its identifier by this point?