Method: String#dasherize

Defined in:
lib/active_support/core_ext/string/inflections.rb

#dasherizeObject

Replaces underscores with dashes in the string.

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

See ActiveSupport::Inflector.dasherize.

[View source]

148
149
150
# File 'lib/active_support/core_ext/string/inflections.rb', line 148

def dasherize
  ActiveSupport::Inflector.dasherize(self)
end