Open
Description
For example:
"underscored_string".dashserize
# => "underscored-string"
I find myself needing this in macros and in runtime code in various situations throughout multiple projects. It works great in conjunction with underscore
:
"LovelyClassName".underscore.dasherize
# => "lovely-class-name"
Doing string.dasherize
instead of string.gsub(/_/, "-")
is a lot more fun.
I wouldn't mind creating a PR for this.
Activity