Method: String#dasherize
- Defined in:
- lib/active_support/core_ext/string/inflections.rb
permalink #dasherize ⇒ Object
Replaces underscores with dashes in the string.
'puni_puni'.dasherize # => "puni-puni"
See ActiveSupport::Inflector.dasherize.
148 149 150 |
# File 'lib/active_support/core_ext/string/inflections.rb', line 148 def dasherize ActiveSupport::Inflector.dasherize(self) end |