instance method
dasherize
Ruby on Rails 7.1.6
Since v3.0.20Signature
dasherize()
Replaces underscores with dashes in the string.
'puni_puni'.dasherize # => "puni-puni"
See ActiveSupport::Inflector.dasherize.
Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 148
def dasherize
ActiveSupport::Inflector.dasherize(self)
end
Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 148
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in String