recase
recase copied to clipboard
Handle atom inputs
What do you think about also handling atom inputs? I'm happy to make a PR to implement this enhancement if you're on board.
You mean recasing atoms?
Recase.to_pascal(:"some-value") == :"SomeCase"
Why do you need it?
I can think of a few use cases, but my immediate use case is generating select options in a Phoenix view helper. I need to map over a bunch of atoms to turn each value like :some_atom
into a label string "Some Atom".
Can you do it this way:
- atom -> string
- string snake -> string other case
?