-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
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
Add StringLiteral#titleize
macro method
#9269
Add StringLiteral#titleize
macro method
#9269
Conversation
This also adds `SymbolLiteral#titleize` and `MacroId#titleize`. Other case conversion methods (`upcase`, `camelcase`, etc) are avialble in macro. So, `#titleize` should not be exception. One use-case is generating error message from type name.
There are no specs for MacroId and SymbolLiteral and it seems the implementation is missing for those, too. |
@straight-shoota And, other methods of |
Do we have this method on standard strings? If so I must've missed the PR, but if not it would be nice to have it there too. |
Yeah I saw that when I was going through the code, I guess I missed the PR. Awesome though, I've wished it was there a number of times. |
This also adds
SymbolLiteral#titleize
andMacroId#titleize
.Other case conversion methods (
upcase
,camelcase
, etc) are avialble in macro. So,titleize
should not be exception.One use-case is generating error message from type name.