Method: ActiveSupport::Inflector#dasherize
- Defined in:
- lib/jinx/active_support/inflector.rb
#dasherize(underscored_word) ⇒ Object
Replaces underscores with dashes in the string.
Example:
"puni_puni" #=>"puni-puni"
220 221 222 |
# File 'lib/jinx/active_support/inflector.rb', line 220 def dasherize(underscored_word) underscored_word.gsub(/_/, '-') end |