We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow to configure custom shortener to not define every constant by hand
idea: is to put some constants list and feed it to shortener that will define himself those shorter version constants
# the default one def shortener(klass_name) klass_name.to_s.gsub('::', '') .split(/[a-z]/).select { |lt| !lt.empty? }.join end shortener(MyClass) # => MC shortener(MyModule::MyClass) # => MMMC shortener(MyModule::MyModelsNamespace::Module) # => MMNM
The text was updated successfully, but these errors were encountered:
No branches or pull requests
allow to configure custom shortener to not define every constant by hand
idea: is to put some constants list and feed it to shortener that will define himself those shorter version constants
The text was updated successfully, but these errors were encountered: