Method: MotionSupport::Inflector#dasherize

Defined in:
motion/inflector/methods.rb

#dasherize(underscored_word) ⇒ Object

Replaces underscores with dashes in the string.

'puni_puni'.dasherize # => "puni-puni"


138
139
140
# File 'motion/inflector/methods.rb', line 138

def dasherize(underscored_word)
  underscored_word.tr('_', '-')
end