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